home · contact · privacy
Fix symlink script error.
[config] / all_new_2018 / symlink_etc.sh
index 16edd24e6e56949b0f6fa328b3fd80e90f465a81..9a7a162f07c28b137fe1186ffe189b34af7904d2 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