diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-03-02 22:38:36 +1100 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-03-02 22:38:36 +1100 |
| commit | 4f4109784dcbe560f986a24d0828c901c1e97ace (patch) | |
| tree | 3155a9b5623670d2db6dc693e090f6b1e13e0afc /install/util.fish | |
| parent | emojis: add nerd font glyphs (diff) | |
| download | caelestia-cli-4f4109784dcbe560f986a24d0828c901c1e97ace.tar.gz caelestia-cli-4f4109784dcbe560f986a24d0828c901c1e97ace.tar.bz2 caelestia-cli-4f4109784dcbe560f986a24d0828c901c1e97ace.zip | |
install: better discord install + fix broken links
Take any number of inputs
Hardcode some custom clients
For some reason test -e doesnt count broken links as existing idk why
Diffstat (limited to 'install/util.fish')
| -rw-r--r-- | install/util.fish | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/install/util.fish b/install/util.fish index ad5a95a..1d1a6ec 100644 --- a/install/util.fish +++ b/install/util.fish @@ -1,8 +1,8 @@ . (dirname (status filename))/../util.fish function confirm-overwrite -a path - if test -e $path - read -l -p "input '$(realpath $path) already exists. Overwrite? [y/N] ' -n" confirm + if test -e $path -o -L $path + read -l -p "input '$(realpath $path 2> /dev/null || echo $path) already exists. Overwrite? [y/N] ' -n" confirm if test "$confirm" = 'y' -o "$confirm" = 'Y' log 'Continuing.' test -z "$argv[2]" && rm -rf $path # If a second arg is provided, don't delete |