summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2023-02-20 20:57:47 +0100
committerRaymaekers Luca <raymaekers.luca@gmail.com>2023-02-20 20:58:39 +0100
commit8fffda74318110ce3bc05543e50d7ca84fe3b4aa (patch)
tree0f64048653063e2431c9b6af7583e62c66f2a1e4
parent5691ad76940c737ff61890cd278c3c0eab6852dc (diff)
addded: (stowcmds) error on unset variable
-rw-r--r--stowcmds.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/stowcmds.sh b/stowcmds.sh
index 4874d48..8856f47 100644
--- a/stowcmds.sh
+++ b/stowcmds.sh
@@ -9,7 +9,7 @@ if [ -n "$MACH" ]
then
echo "I: stowing for $MACH"
else
- echo "E: MACH not set"
+ echo "E: MACH not set" 1>&2
exit 1
fi
@@ -36,5 +36,6 @@ case "$MACH" in
stow -d config/ -t "$HOME/" -R zshrc
;;
*)
+ echo "E: invalid value for 'MACH'" 1>&2
break
esac