From fd14efb7739961cf2d15057b96ef376c046e80f6 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sun, 23 Feb 2025 21:23:34 +1100 Subject: install: better link install Remove links if not already linked before linking --- install/vscode.fish | 1 + 1 file changed, 1 insertion(+) (limited to 'install/vscode.fish') 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 -- cgit v1.2.3-freya