From 2260f43f59bfc7f521eb39ee3489572567c39bae Mon Sep 17 00:00:00 2001 From: Cyberes Date: Fri, 29 Mar 2024 10:23:24 -0600 Subject: [PATCH] trying to code while driving --- check_systemd_service.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/check_systemd_service.sh b/check_systemd_service.sh index a5b810f..052749e 100755 --- a/check_systemd_service.sh +++ b/check_systemd_service.sh @@ -12,7 +12,7 @@ IS_TIMER=false IS_ALLOWED_DISABLED=false # Parse command line arguments -while getopts "u:t" opt; do +while getopts "u:t:d" opt; do case ${opt} in u ) UNIT_NAME=$OPTARG @@ -20,11 +20,11 @@ while getopts "u:t" opt; do t ) IS_TIMER=true ;; - t ) + d ) IS_ALLOWED_DISABLED=true ;; \? ) - echo "Invalid option: $OPTARG" 1>&2 + usage exit 1 ;; : )