summaryrefslogtreecommitdiff
path: root/src/remove.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/remove.zig')
-rw-r--r--src/remove.zig4
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 @@
1const std = @import("std"); 1const std = @import("std");
2const xdg = @import("xdg"); 2const xdg = @import("xdg");
3const zup = @import("zup"); 3const zup = @import("root");
4 4
5const Config = zup.Config; 5const Config = zup.Config;
6const Installation = zup.Installation; 6const 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 }