Test Script

This commit is contained in:
Michael Grote 2022-07-17 12:55:05 +02:00
parent 4788470c0d
commit 94f1926a39

View file

@ -1,11 +1,4 @@
#!/bin/sh -e #!/bin/bash
if [[ -n "$1" ]]; then if [[ -n "$1" ]]; then
case "$1" in case "$1" in
@ -25,6 +18,7 @@ if [[ -n "$1" ]]; then
hibernate hibernate
;; ;;
--help | -h) --help | -h)
hilfe
exit 0 exit 0
;; ;;
*) *)
@ -60,7 +54,7 @@ function hibernate {
lock lock
sudo systemctl reboot sudo systemctl reboot
} }
function help { function hilfe {
echo " echo "
Usage: Usage:
./build.sh [-l|-r|-s|-sd|-hb] ./build.sh [-l|-r|-s|-sd|-hb]