From 38745b9d447eb0a04d51931cf8f264a2f5d967ed Mon Sep 17 00:00:00 2001 From: Adrian Wannenmacher Date: Sun, 17 Oct 2021 15:47:35 +0200 Subject: [PATCH] check depenencies only if enabled --- src/snap-pac-uki.fish | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/snap-pac-uki.fish b/src/snap-pac-uki.fish index a78fc7f..26c4f6c 100755 --- a/src/snap-pac-uki.fish +++ b/src/snap-pac-uki.fish @@ -149,12 +149,13 @@ function main # prepare for execution source "/etc/snap-pac-uki/config.fish" config - check_deps if test "$CFG_ENABLED" != "yes" echo "not enabled in config file" 1>&2 exit 0 end + + check_deps switch $argv[1] case "snapshots"