X-Git-Url: https://plomlompom.com/repos//%22https:/validator.w3.org/check?a=blobdiff_plain;f=all_new_2018%2Fsymlink_etc.sh;h=16edd24e6e56949b0f6fa328b3fd80e90f465a81;hb=2004b0439e1f62fc6f747627b84c29072a9efb91;hp=08f19135ddbcb3528fc68a82ff3f48d9868ca975;hpb=90a243f03a92a386a1b2b24ffc74c42f2b55a61f;p=config 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