From 0dc56dd1bcddffb634bd96404bd120469b4eb978 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Thu, 25 Jan 2024 10:53:10 -0600 Subject: [PATCH] really need to drop bash --- styx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/styx b/styx index 4009fea..41d5bf5 100755 --- a/styx +++ b/styx @@ -102,7 +102,7 @@ while [[ $# -gt 0 ]]; do ;; -h | --host) HOSTNAME="$2" - shift; shift; + shift; ;; --help) help @@ -126,5 +126,9 @@ if [[ $# -gt 0 ]]; then echo "forwarding args: ${BOLD}$*${RESET}" fi +if [[ -z ${cmd+x} ]]; then + error "please specify a command" + help +fi $cmd "$@"