diff options
Diffstat (limited to '')
| -rw-r--r-- | install/util.fish | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/install/util.fish b/install/util.fish index 64364bf..6fca2f9 100644 --- a/install/util.fish +++ b/install/util.fish @@ -5,7 +5,7 @@ function confirm-overwrite -a path read -l -p "input '$(realpath $path) already exists. Overwrite? [y/N] ' -n" confirm if test "$confirm" = 'y' -o "$confirm" = 'Y' log 'Continuing.' - set -q $argv[2] || rm -rf $path # If a second arg is provided, don't delete + test -z "$argv[2]" && rm -rf $path # If a second arg is provided, don't delete else log 'Exiting.' exit |