From d3775228ce5903d92ff9ba9f4e33e069e93735d6 Mon Sep 17 00:00:00 2001 From: Jordan Atwood Date: Thu, 22 Dec 2022 21:41:57 -0800 Subject: [PATCH] Standardize symlink tests to use -L instead of -h No reason for this, it's just easier to remember what it checks for, and nice to be consistent in its usage. --- post-setup/vscode.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/post-setup/vscode.sh b/post-setup/vscode.sh index 201f704..cbc3d8a 100755 --- a/post-setup/vscode.sh +++ b/post-setup/vscode.sh @@ -47,7 +47,7 @@ done < "$DIR"/vscode/extensions for file in settings.json keybindings.json; do source="${DIR}/vscode/$file" target="$VSCODE_CONFIG_PATH/$file" - if [[ -h "$target" ]] && [[ "$source" == "$(readlink -f "$target")" ]]; then + if [[ -L "$target" ]] && [[ "$source" == "$(readlink -f "$target")" ]]; then echo "Skipping '$source' -> '$target' link as it is already linked" continue elif [[ -f "$target" ]]; then