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
|
||||
# $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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user