From: Christian Heller Date: Sat, 12 Dec 2015 11:12:48 +0000 (+0100) Subject: Don't symlink user dotfiles into root home. X-Git-Url: https://plomlompom.com/repos/%7B%7Bdb.prefix%7D%7D/%7B%7B%20web_path%20%7D%7D/decks/%7B%7Bprefix%7D%7D/%27%29;%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20chunks.push%28escapeHTML%28span%5B2%5D%29%29;%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20chunks.push%28%27?a=commitdiff_plain;h=62c0fa84083528ad1d5f01569689230263aab8d2;p=config Don't symlink user dotfiles into root home. --- diff --git a/symlink.sh b/symlink.sh index fabee57..f0e6345 100755 --- a/symlink.sh +++ b/symlink.sh @@ -12,20 +12,21 @@ find ~ -lname $homedir'/config/*' -delete for file in `ls $dir_minimal`; do ln -fs $dir_minimal/$file ~/.$file done -for file in `ls $dir_user_minimal`; do - ln -fs $dir_user_minimal/$file ~/.$file -done -if [ "$1" = "thinkpad" ]; then - for file in `ls $dir_user_thinkpad`; do - ln -fs $dir_user_thinkpad/$file ~/.$file - done -elif [ "$1" = "server" ]; then - for file in `ls $dir_user_server`; do - ln -fs $dir_user_server/$file ~/.$file - done -fi if [ "$(id -u)" -eq "0" ]; then for file in `ls $dir_root`; do ln -fs $dir_root/$file ~/.$file done +else + for file in `ls $dir_user_minimal`; do + ln -fs $dir_user_minimal/$file ~/.$file + done + if [ "$1" = "thinkpad" ]; then + for file in `ls $dir_user_thinkpad`; do + ln -fs $dir_user_thinkpad/$file ~/.$file + done + elif [ "$1" = "server" ]; then + for file in `ls $dir_user_server`; do + ln -fs $dir_user_server/$file ~/.$file + done + fi fi