X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;ds=sidebyside;f=symlink.sh;h=c4e540494a8db102f51c3cf97847ed531c5ada2b;hb=dfa9d589e56eeaeb988e7ee982eec92ee6cdf0d1;hp=a78b1dec9ad57240b49b7367db5623c558fb6d2d;hpb=e10414b6e6106395ff4f4b298b542ff74513aadd;p=config diff --git a/symlink.sh b/symlink.sh index a78b1de..c4e5404 100755 --- a/symlink.sh +++ b/symlink.sh @@ -1,11 +1,13 @@ #!/bin/sh +set -x + dir=~/config/dotfiles 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