diff options
Diffstat (limited to 'install/util.fish')
| -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 30ee6e1..64364bf 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.' - rm -rf $path + set -q $argv[2] || rm -rf $path # If a second arg is provided, don't delete else log 'Exiting.' exit |