Commit 243997dd authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

remove any special chars at beginning of line

parent 6520c344
......@@ -19,6 +19,7 @@
# 2020-03-05 v1.1 <axel.hahn@iml.unibe.ch> switch to ph.* helper functions
# 2020-04-02 v1.2 <axel.hahn@iml.unibe.ch> added ph.execIfReady in _init
# 2021-10-21 v1.3 <axel.hahn@iml.unibe.ch> remove starting spaces in systemctl output
# 2022-04-14 v1.4 <axel.hahn@iml.unibe.ch> remove any special chars at beginning of line
# ================================================================================
. `dirname $0`/inc_pluginfunctions
......@@ -47,7 +48,7 @@ function _init(){
rm -f ${tmpErrors} ${tmpOut} ${tmpOutOther} 2>/dev/null
# systemctl --no-legend --no-pager --all --type service >${tmpServices}
# systemctl --no-legend --no-pager --type service >${tmpServices}
ph.execIfReady "systemctl --no-legend --no-pager --type service" | sed "s#^\ *##g" | grep -vf ${ignorefile} >${tmpServices}
ph.execIfReady "systemctl --no-legend --no-pager --type service" | sed "s#^[^a-zA-Z0-9]*##g" | grep -vf ${ignorefile} >${tmpServices}
}
# get wanted services from service list
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment