From 5e1490b760567068c23412e9272f8c7827a95dd0 Mon Sep 17 00:00:00 2001 From: Cyberes Date: Fri, 29 Mar 2024 10:29:10 -0600 Subject: [PATCH] f --- check_systemd_service.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/check_systemd_service.sh b/check_systemd_service.sh index 0c16e67..dfe21d1 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:d" opt; do +while getopts "u:td" opt; do case ${opt} in u ) UNIT_NAME=$OPTARG @@ -35,7 +35,6 @@ while getopts "u:t:d" opt; do done shift $((OPTIND -1)) -# Check if UNIT name is provided if [ -z "$UNIT_NAME" ]; then echo "Missing unit name." usage