From: Christian Heller Date: Sun, 3 May 2015 03:03:16 +0000 (+0200) Subject: Fix root detection bug in symlink script. X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/%7B%7Bprefix%7D%7D/do_todos?a=commitdiff_plain;h=dfa9d589e56eeaeb988e7ee982eec92ee6cdf0d1;p=config Fix root detection bug in symlink script. --- diff --git a/symlink.sh b/symlink.sh index f3399aa..c4e5404 100755 --- a/symlink.sh +++ b/symlink.sh @@ -7,7 +7,7 @@ dir_root=~/config/dotfiles_root for file in `ls $dir`; do ln -fs $dir/$file ~/.$file done -if [ "$(id -u)" -ne "0" ]; then +if [ "$(id -u)" -eq "0" ]; then for file in `ls $dir_root`; do ln -fs $dir_root/$file ~/.$file done