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