From 94f1926a39098e1a2e979a7344fb8ac261ad6e4a Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Sun, 17 Jul 2022 12:55:05 +0200 Subject: [PATCH] Test Script --- i3/scripte/lock.sh | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) 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]