diff --git a/check-systemctl-service.sh b/check-systemctl-service.sh index 21da0eb..b27fe44 100644 --- a/check-systemctl-service.sh +++ b/check-systemctl-service.sh @@ -69,6 +69,8 @@ GetOptions() { user='' service='' LC_NUMERIC="C" +script_name=$(basename "${0}") +script_dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) GetOptions "$@" if [[ $(systemctl ${user} list-unit-files "${service}*" | wc -l) -gt 3 ]]; then