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

fix _list when filtering by -r REGEX

parent 2b92af61
Branches
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