diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-01-28 18:33:09 +1100 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-01-28 18:33:09 +1100 |
| commit | e77928dd6fc339ea2acdcbe3614fea3c60c13232 (patch) | |
| tree | e37f9ce059b2543026f40c42da7cf3fde0f6590c /install/util.fish | |
| parent | install: fix hypr installation (diff) | |
| download | caelestia-cli-e77928dd6fc339ea2acdcbe3614fea3c60c13232.tar.gz caelestia-cli-e77928dd6fc339ea2acdcbe3614fea3c60c13232.tar.bz2 caelestia-cli-e77928dd6fc339ea2acdcbe3614fea3c60c13232.zip | |
2nd fix
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 |