Fix symlink check
This commit is contained in:
parent
650343c78d
commit
a09b7cd2a2
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
function do_link {
|
function do_link {
|
||||||
if [ ! -h "$2" ]; then
|
if [ ! -h "$HOME/.$1" ]; then
|
||||||
echo "ln -sf '$HOME/.dotfiles/$1' '$HOME/.$1'"
|
echo "ln -sf '$HOME/.dotfiles/$1' '$HOME/.$1'"
|
||||||
ln -sf "$HOME/.dotfiles/$1" "$HOME/.$1"
|
ln -sf "$HOME/.dotfiles/$1" "$HOME/.$1"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue