From: Christian Heller Date: Tue, 13 Nov 2018 22:02:00 +0000 (+0100) Subject: Improve symlink script. X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/static/%7B%7Byoutube_prefix%7D%7D%7B%7Bvideo_id%7D%7D?a=commitdiff_plain;h=2004b0439e1f62fc6f747627b84c29072a9efb91;p=config Improve symlink script. --- diff --git a/all_new_2018/symlink_etc.sh b/all_new_2018/symlink_etc.sh old mode 100644 new mode 100755 index 08f1913..16edd24 --- a/all_new_2018/symlink_etc.sh +++ b/all_new_2018/symlink_etc.sh @@ -8,7 +8,8 @@ set -e target="$1" config_tree_prefix="${HOME}/config/all_new_2018/linkable_etc_files/" cd "${config_tree_prefix}""${target}" -for path in $(find .); do - dest=$(echo "${path}" | cut -c2-) - ln -fs "${path}" "${dest}" +for path in $(find . -type f); do + src=$(echo "${path}" | cut -c2-) + dest=$(realpath "${path}") + ln -fs "${dest}" "${src}" done