home · contact · privacy
Improve symlink script.
authorChristian Heller <c.heller@plomlompom.de>
Tue, 13 Nov 2018 22:06:12 +0000 (23:06 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Tue, 13 Nov 2018 22:06:12 +0000 (23:06 +0100)
all_new_2018/symlink_etc.sh

index 16edd24e6e56949b0f6fa328b3fd80e90f465a81..f1f97af1a557a27b5a5d51fdce500cda02c7cd23 100755 (executable)
@@ -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