From 82c127ec5d9e913fe49f5b90450f4db68a7ecf0a Mon Sep 17 00:00:00 2001 From: mattmcw Date: Thu, 16 Sep 2021 01:21:27 -0400 Subject: [PATCH] Bail if no command --- position.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/position.sh b/position.sh index 0c8afb8..93a5391 100644 --- a/position.sh +++ b/position.sh @@ -4,6 +4,11 @@ XZIG=1.0 X=3.2 //4.2 - XZIG Y=1.25 +if [[ "${1}" == "" ]]; then + echo "Please provide an argument. Either 'set' or 'reset'." + exit 1 +fi + if [ "${1}" == "set" ]; then paxi move $XZIG 0 paxi move 0 $Y