From dfa9d589e56eeaeb988e7ee982eec92ee6cdf0d1 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Sun, 3 May 2015 05:03:16 +0200 Subject: [PATCH] Fix root detection bug in symlink script. --- symlink.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2