install: better link install

Remove links if not already linked before linking
This commit is contained in:
2 * r + 2 * t
2025-02-23 21:23:34 +11:00
parent 557e1e4abe
commit fd14efb773
6 changed files with 16 additions and 13 deletions
+2 -1
View File
@@ -12,9 +12,10 @@ update-repo scripts $dist
# Install to path
mkdir -p ~/.local/bin
ln -sf $dist/main.fish ~/.local/bin/caelestia
install-link $dist/main.fish ~/.local/bin/caelestia
# Install completions
test -e $CONFIG/fish/completions/caelestia.fish && rm $CONFIG/fish/completions/caelestia.fish
mkdir -p $CONFIG/fish/completions
cp $dist/completions/caelestia.fish $CONFIG/fish/completions/caelestia.fish