Oops, put the msg in the wrong spot

This commit is contained in:
Siina Mashek 2024-10-14 11:05:37 +03:00
parent 7888735e2d
commit 5a72630a39

View File

@ -61,6 +61,7 @@ status () {
else else
tmux capture-pane -t icloudsync -p -S -1 | tail -1 tmux capture-pane -t icloudsync -p -S -1 | tail -1
fi fi
exit
} }
msg="available commands are: start, stop, attach, status" msg="available commands are: start, stop, attach, status"
@ -82,8 +83,10 @@ while [[ $# -gt 0 ]]; do
status) status)
status status
;; ;;
*)
echo $msg
;;
esac esac
echo $msg
exit exit
done done