fixed another bug in create.sh
This commit is contained in:
parent
b47c4cf524
commit
ccc542f7d9
|
|
@ -3,7 +3,7 @@
|
||||||
# make a rename to save it and replace with an symbolic link to
|
# make a rename to save it and replace with an symbolic link to
|
||||||
# $HOME/dotfiles/$FILE
|
# $HOME/dotfiles/$FILE
|
||||||
|
|
||||||
function create_link {
|
create_link () {
|
||||||
if [ -e $HOME/$1 ]
|
if [ -e $HOME/$1 ]
|
||||||
then
|
then
|
||||||
if [ ! -h $HOME/$1 ]
|
if [ ! -h $HOME/$1 ]
|
||||||
|
|
@ -11,6 +11,8 @@ function create_link {
|
||||||
mv $HOME/$1 $HOME/$1.orig
|
mv $HOME/$1 $HOME/$1.orig
|
||||||
ln -s $HOME/dotfiles/$1 $HOME/$1
|
ln -s $HOME/dotfiles/$1 $HOME/$1
|
||||||
fi
|
fi
|
||||||
|
else
|
||||||
|
ln -s $HOME/dotfiles/$1 $HOME/$1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user