Giving a list of commands if invalid commands or no command sent
This commit is contained in:
parent
69963e62ba
commit
7888735e2d
1 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue