diff --git a/check_systemdunit b/check_systemdunit index e04f6c39543cfb248344de547461f424489f8b58..2f62cb9b6c4aa3a80f564de2043cebe3f16610c1 100755 --- a/check_systemdunit +++ b/check_systemdunit @@ -103,7 +103,7 @@ fi # --- find a service by regex if ph.hasParamoption "r" "$@" ; then _regex="${2}" - _list=$( _getUnits | awk '{ print $1 }' | grep -v '[^a-z\.\-]' | sort ) + _list=$( _getUnits | awk '{ print $1 }' | sort ) _unit=$( grep -E "$_regex" <<< "$_list" ) if [ -z "$_unit" ]; then