From: Christian Heller Date: Tue, 13 Nov 2018 22:06:12 +0000 (+0100) Subject: Improve symlink script. X-Git-Url: https://plomlompom.com/repos/edit?a=commitdiff_plain;h=bebdb36b5829d317e14caced306d30a04179198f;p=config Improve symlink script. --- diff --git a/all_new_2018/symlink_etc.sh b/all_new_2018/symlink_etc.sh index 16edd24..f1f97af 100755 --- a/all_new_2018/symlink_etc.sh +++ b/all_new_2018/symlink_etc.sh @@ -6,6 +6,11 @@ set -e target="$1" +if [ ! "${target}" = "all" ] && [ ! "$target}" = "server" ]; then + echo "Need proper target." + false +fi + config_tree_prefix="${HOME}/config/all_new_2018/linkable_etc_files/" cd "${config_tree_prefix}""${target}" for path in $(find . -type f); do