|
|
@ -47,7 +47,7 @@ done < "$DIR"/vscode/extensions |
|
|
|
for file in settings.json keybindings.json; do |
|
|
|
for file in settings.json keybindings.json; do |
|
|
|
source="${DIR}/vscode/$file" |
|
|
|
source="${DIR}/vscode/$file" |
|
|
|
target="$VSCODE_CONFIG_PATH/$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" |
|
|
|
echo "Skipping '$source' -> '$target' link as it is already linked" |
|
|
|
continue |
|
|
|
continue |
|
|
|
elif [[ -f "$target" ]]; then |
|
|
|
elif [[ -f "$target" ]]; then |
|
|
|