fix install script
This commit is contained in:
parent
70d84d6ed1
commit
495d021dee
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user