Skip to content
Snippets Groups Projects

fix _list when filtering by -r REGEX

Merged Hahn Axel (hahn) requested to merge add-systemdunit into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -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
Loading