diff options
Diffstat (limited to 'src/remove.zig')
| -rw-r--r-- | src/remove.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/remove.zig b/src/remove.zig index f795df7..2d868fb 100644 --- a/src/remove.zig +++ b/src/remove.zig | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | const std = @import("std"); | 1 | const std = @import("std"); |
| 2 | const xdg = @import("xdg"); | 2 | const xdg = @import("xdg"); |
| 3 | const zup = @import("zup"); | 3 | const zup = @import("root"); |
| 4 | 4 | ||
| 5 | const Config = zup.Config; | 5 | const Config = zup.Config; |
| 6 | const Installation = zup.Installation; | 6 | const Installation = zup.Installation; |
| @@ -25,7 +25,7 @@ pub fn main(comptime Result: type, config: Config, res: Result) !void { | |||
| 25 | 25 | ||
| 26 | const is_active = try Installation.isActive(allocator, name); | 26 | const is_active = try Installation.isActive(allocator, name); |
| 27 | 27 | ||
| 28 | if (is_active and !res.args.force) { | 28 | if (is_active and res.args.force == 0) { |
| 29 | std.log.err("{s} is the active installation, not removing without --force!", .{name}); | 29 | std.log.err("{s} is the active installation, not removing without --force!", .{name}); |
| 30 | return error.CantRemove; | 30 | return error.CantRemove; |
| 31 | } | 31 | } |