1
0
Fork 0
forked from ahurac/dotfiles

Ajout : cas d'utilisation dans mcserv

This commit is contained in:
Hippolyte Chauvin 2023-07-03 19:54:35 +02:00
parent 6489a11307
commit 32069470b7

View file

@ -1,4 +1,4 @@
#!/bin/bash #!/bin/bash -x
shopt -s expand_aliases shopt -s expand_aliases
alias mcscreen='sudo -u minecraft screen' alias mcscreen='sudo -u minecraft screen'
@ -14,6 +14,7 @@ public_usage() {
${name}: utilisation ${name}: utilisation
${name} start|status|stop|watch NOM_SERVEUR ${name} start|status|stop|watch NOM_SERVEUR
${name} list ${name} list
${name} usage
EOF EOF
} }
@ -52,7 +53,7 @@ public_list() {
verb="$1" verb="$1"
shift shift
case "$verb" in case "$verb" in
start) start|status|stop|watch|list|usage)
"public_${verb}" "$@" "public_${verb}" "$@"
;; ;;
*) *)