fix install script

This commit is contained in:
Matthias Kretschmann 2016-05-07 22:28:06 +02:00
parent 70d84d6ed1
commit 495d021dee
Signed by: m
GPG Key ID: BD3C1F3EDD7831FC

View File

@ -6,15 +6,15 @@ FILES=".bash_aliases .bash_prompt .bashrc .profile bin .vimrc"
for FILE in $FILES; do for FILE in $FILES; do
# remove old versions # remove old versions
if [ -d "~/$FILE" ] ; then if [ -f "$HOME/$FILE" ] ; then
rm -r ~/$FILE rm -r $HOME/$FILE
fi fi
# symlink files # symlink files
ln -s $PWD/$FILE ~/$FILE ln -s $PWD/$FILE $HOME/$FILE
echo "$(tput setaf 64)$(tput sgr0) Symlink created to $(tput setaf 37)$FILE$(tput sgr0)" echo "$(tput setaf 64)$(tput sgr0) Symlink created to $(tput setaf 37)$FILE$(tput sgr0)"
done done
# source what we just created # source what we just created
source ~/.profile source $HOME/.profile