Take a safer approach for symlinking script
This commit is contained in:
parent
93b3891051
commit
99f3682799
1 changed files with 2 additions and 1 deletions
|
|
@ -16,7 +16,8 @@ for DIR in "${!DIRS[@]}"; do
|
|||
TARGET="${DIRS[$DIR]}"
|
||||
|
||||
if [ -e "$TARGET" ]; then
|
||||
rm -rf "$TARGET"
|
||||
echo "Warning: $TARGET already exists, skipping..."
|
||||
continue
|
||||
fi
|
||||
|
||||
ln -sf "$DOTFILES_DIR/$DIR" "$TARGET"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue