X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/decks/%7B%7Bdeck_id%7D%7D/cards/%7B%7Bcard_id%7D%7D/static/gitweb.css?a=blobdiff_plain;f=symlink.sh;h=c4e540494a8db102f51c3cf97847ed531c5ada2b;hb=7b44a9696d0dc7f7d89b56758b1fed9d8cd41740;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