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