summaryrefslogtreecommitdiff
path: root/src/remove.zig
diff options
context:
space:
mode:
authorGravatar Uko Kokņevičs2023-04-02 22:28:09 +0300
committerGravatar Uko Kokņevičs2023-04-02 22:30:53 +0300
commit06a9ac758c3c201625cbc17d3ccc0f8eea19cdf5 (patch)
tree1d8261677108400367497a1adec01135e18ad6f5 /src/remove.zig
parentActually use my zig-curl instead of zelda. (diff)
downloadzup-06a9ac758c3c201625cbc17d3ccc0f8eea19cdf5.tar.gz
zup-06a9ac758c3c201625cbc17d3ccc0f8eea19cdf5.tar.xz
zup-06a9ac758c3c201625cbc17d3ccc0f8eea19cdf5.zip
Update to latest zig
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 }