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.
master
Jordan Atwood 2 years ago
parent a4c0d4826d
commit d3775228ce
Signed by: nightfirecat
GPG Key ID: 615A619C2D73A6DF
  1. 2
      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

Loading…
Cancel
Save