aboutsummaryrefslogtreecommitdiff
path: root/src/sbin
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2020-01-12 18:49:00 -0500
committerB Stack <bgstack15@gmail.com>2020-01-12 18:49:00 -0500
commit0590a8a7b16b041da72c1d3cfc3a92975370bc2e (patch)
treeccfc58630a559c158eb75788b6383935ced3be26 /src/sbin
parentWIP: add most parsing (diff)
downloadsystemdtl-0590a8a7b16b041da72c1d3cfc3a92975370bc2e.tar.gz
systemdtl-0590a8a7b16b041da72c1d3cfc3a92975370bc2e.tar.bz2
systemdtl-0590a8a7b16b041da72c1d3cfc3a92975370bc2e.zip
actually execute action list
Diffstat (limited to 'src/sbin')
-rwxr-xr-xsrc/sbin/systemctl11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/sbin/systemctl b/src/sbin/systemctl
index 3f13c9d..0e00b10 100755
--- a/src/sbin/systemctl
+++ b/src/sbin/systemctl
@@ -376,8 +376,15 @@ debuglev 5 && {
esac
# list of actions
- echo "Need to perform these commands:"
- echo "${actionlist}"
+ if test -n "${actionlist}" ;
+ then
+ debuglev 1 && ferror "Full list: ${actionlist}"
+ printf "%s" "${actionlist}" | tr ';' '\n' | while read thisaction ;
+ do
+ debuglev 5 && ferror "${thisaction}"
+ eval "${thisaction}"
+ done
+ fi
#} | tee -a ${logfile}
# EMAIL LOGFILE
bgstack15