Don't install .profile-local/.profile-private if found in src

This commit is contained in:
2021-12-29 17:59:52 +08:00
parent 3643bbdefb
commit 3be8cc79c8

View File

@@ -49,6 +49,7 @@ OLDIFS="$IFS"
IFS=$'\n' IFS=$'\n'
for x in $(ls -a); do for x in $(ls -a); do
[ "$x" = '.' ] || [ "$x" = '..' ] && continue; [ "$x" = '.' ] || [ "$x" = '..' ] && continue;
[ "$x" = '.profile-local' ] || [ "$x" = '.profile-private' ] && continue;
[ -r "$HOME/$x" ] && echo -ne "Backup: " && mv -v "$HOME/$x" "$BACK_DIR" [ -r "$HOME/$x" ] && echo -ne "Backup: " && mv -v "$HOME/$x" "$BACK_DIR"
echo -ne "Linking: " && ln -srv "$(pwd)/$x" "$HOME" echo -ne "Linking: " && ln -srv "$(pwd)/$x" "$HOME"
done done