summaryrefslogtreecommitdiff
path: root/install/vscode.fish
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-02-23 21:23:34 +1100
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-02-23 21:23:34 +1100
commitfd14efb7739961cf2d15057b96ef376c046e80f6 (patch)
treed8dcace910ce07f7ace251d5dc96e4aace1eb88c /install/vscode.fish
parentscheme: light/dark mode (diff)
downloadcaelestia-cli-fd14efb7739961cf2d15057b96ef376c046e80f6.tar.gz
caelestia-cli-fd14efb7739961cf2d15057b96ef376c046e80f6.tar.bz2
caelestia-cli-fd14efb7739961cf2d15057b96ef376c046e80f6.zip
install: better link install
Remove links if not already linked before linking
Diffstat (limited to 'install/vscode.fish')
-rwxr-xr-xinstall/vscode.fish1
1 files changed, 1 insertions, 0 deletions
diff --git a/install/vscode.fish b/install/vscode.fish
index 1f4b6b1..56ddd39 100755
--- a/install/vscode.fish
+++ b/install/vscode.fish
@@ -3,6 +3,7 @@
. (dirname (status filename))/util.fish
function confirm-copy -a from to
+ test -L $to -a (realpath $to) = (realpath $from) && return
if test -e $to
read -l -p "input '$(realpath $to) already exists. Overwrite? [y/N] ' -n" confirm
test "$confirm" = 'y' -o "$confirm" = 'Y' && log 'Continuing.' || return