fixed another bug in create.sh

This commit is contained in:
Scharrenbach 2018-07-12 08:23:50 +02:00
parent b47c4cf524
commit ccc542f7d9

View File

@ -3,7 +3,7 @@
# make a rename to save it and replace with an symbolic link to
# $HOME/dotfiles/$FILE
function create_link {
create_link () {
if [ -e $HOME/$1 ]
then
if [ ! -h $HOME/$1 ]
@ -11,6 +11,8 @@ function create_link {
mv $HOME/$1 $HOME/$1.orig
ln -s $HOME/dotfiles/$1 $HOME/$1
fi
else
ln -s $HOME/dotfiles/$1 $HOME/$1
fi
}