Skip to content
Snippets Groups Projects
Commit 3da28dd1 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

Merge branch 'add-systemdunit' into 'master'

fix _list when filtering by -r REGEX

See merge request !171
parents 450cd883 e2884122
No related branches found
No related tags found
1 merge request!171fix _list when filtering by -r REGEX
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment