diff --git a/i3/scripte/lock.sh b/i3/scripte/lock.sh index 1022b15..ab3a0fa 100755 --- a/i3/scripte/lock.sh +++ b/i3/scripte/lock.sh @@ -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]