Fix in linux_has_systemd_service()

This commit is contained in:
patvdv 2018-11-18 23:04:53 +01:00
parent 267c725e35
commit 2069863dd6

View File

@ -224,7 +224,7 @@ function linux_has_systemd_service
(( ARG_DEBUG > 0 && ARG_DEBUG_LEVEL > 0 )) && set "${DEBUG_OPTS}" (( ARG_DEBUG > 0 && ARG_DEBUG_LEVEL > 0 )) && set "${DEBUG_OPTS}"
typeset _RC=0 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=$? _RC=$?
return ${_RC} return ${_RC}