mirror of
https://github.com/caelestia-dots/cli.git
synced 2026-06-05 23:09:27 -05:00
2nd fix
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user