From 2069863dd60f94518aaa27201a5819098f0aa5ce Mon Sep 17 00:00:00 2001 From: patvdv Date: Sun, 18 Nov 2018 23:04:53 +0100 Subject: [PATCH] Fix in linux_has_systemd_service() --- sources/lib/core/include_os.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/lib/core/include_os.sh b/sources/lib/core/include_os.sh index 5b6493d..f843373 100644 --- a/sources/lib/core/include_os.sh +++ b/sources/lib/core/include_os.sh @@ -224,7 +224,7 @@ function linux_has_systemd_service (( ARG_DEBUG > 0 && ARG_DEBUG_LEVEL > 0 )) && set "${DEBUG_OPTS}" typeset _RC=0 -systemctl list-unit-files 2>/dev/null | grep -c "^{$1}" 2>/dev/null +systemctl list-unit-files 2>/dev/null | grep -c "^${1}" 2>/dev/null _RC=$? return ${_RC}