From 7888735e2d96acca835fbe471cdab8a98839be9f Mon Sep 17 00:00:00 2001 From: Siina Mashek Date: Mon, 14 Oct 2024 11:03:07 +0300 Subject: [PATCH] Giving a list of commands if invalid commands or no command sent --- apsalar/icloudsync | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/apsalar/icloudsync b/apsalar/icloudsync index a5a4b65..76804a5 100755 --- a/apsalar/icloudsync +++ b/apsalar/icloudsync @@ -20,7 +20,7 @@ if [[ -z "$ICLOUD_USERNAME" ]]; then exit 1 fi -# tmux session name +# Set tmux session name session="icloudsync" attach () { @@ -63,8 +63,9 @@ status () { fi } +msg="available commands are: start, stop, attach, status" if [[ $# -eq 0 ]]; then - echo "Available commands are: start, stop, attach, status" + echo $msg fi while [[ $# -gt 0 ]]; do @@ -82,5 +83,7 @@ while [[ $# -gt 0 ]]; do status ;; esac + echo $msg exit done +