| ... | @@ -12,12 +12,12 @@ pub fn main() !void { | ... | @@ -12,12 +12,12 @@ pub fn main() !void { |
| 12 | _ = arg_it.next(); | 12 | _ = arg_it.next(); |
| 13 | | 13 | |
| 14 | const cwd = std.fs.cwd(); | 14 | const cwd = std.fs.cwd(); |
| 15 | const cwd_realpath = try cwd.realpathAlloc(arena, ""); | 15 | const cwd_realpath = try cwd.realpathAlloc(arena, "."); |
| 16 | | 16 | |
| 17 | while (arg_it.next()) |file_path| { | 17 | while (arg_it.next()) |file_path| { |
| 18 | if (file_path.len > 0 and file_path[0] == '!') { | 18 | if (file_path.len > 0 and file_path[0] == '!') { |
| 19 | errdefer std.log.err( | 19 | errdefer std.log.err( |
| 20 | "excluded file check '{s}{c}{s}' failed", | 20 | "exclusive file check '{s}{c}{s}' failed", |
| 21 | .{ cwd_realpath, std.fs.path.sep, file_path[1..] }, | 21 | .{ cwd_realpath, std.fs.path.sep, file_path[1..] }, |
| 22 | ); | 22 | ); |
| 23 | if (std.fs.cwd().statFile(file_path[1..])) |_| { | 23 | if (std.fs.cwd().statFile(file_path[1..])) |_| { |
| ... | @@ -28,7 +28,7 @@ pub fn main() !void { | ... | @@ -28,7 +28,7 @@ pub fn main() !void { |
| 28 | } | 28 | } |
| 29 | } else { | 29 | } else { |
| 30 | errdefer std.log.err( | 30 | errdefer std.log.err( |
| 31 | "included file check '{s}{c}{s}' failed", | 31 | "inclusive file check '{s}{c}{s}' failed", |
| 32 | .{ cwd_realpath, std.fs.path.sep, file_path }, | 32 | .{ cwd_realpath, std.fs.path.sep, file_path }, |
| 33 | ); | 33 | ); |
| 34 | _ = try std.fs.cwd().statFile(file_path); | 34 | _ = try std.fs.cwd().statFile(file_path); |