From 06a9ac758c3c201625cbc17d3ccc0f8eea19cdf5 Mon Sep 17 00:00:00 2001 From: Uko Kokņevičs Date: Sun, 2 Apr 2023 22:28:09 +0300 Subject: Update to latest zig --- src/remove.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/remove.zig') 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 @@ const std = @import("std"); const xdg = @import("xdg"); -const zup = @import("zup"); +const zup = @import("root"); const Config = zup.Config; const Installation = zup.Installation; @@ -25,7 +25,7 @@ pub fn main(comptime Result: type, config: Config, res: Result) !void { const is_active = try Installation.isActive(allocator, name); - if (is_active and !res.args.force) { + if (is_active and res.args.force == 0) { std.log.err("{s} is the active installation, not removing without --force!", .{name}); return error.CantRemove; } -- cgit v1.2.3