From bebdb36b5829d317e14caced306d30a04179198f Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Tue, 13 Nov 2018 23:06:12 +0100 Subject: [PATCH] Improve symlink script. --- all_new_2018/symlink_etc.sh | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.30.2