home
·
contact
·
privacy
projects
/
config
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improve symlink script.
[config]
/
all_new_2018
/
symlink_etc.sh
diff --git
a/all_new_2018/symlink_etc.sh
b/all_new_2018/symlink_etc.sh
old mode 100644
(file)
new mode 100755
(executable)
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}"
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
done