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 +