diff options
author | B Stack <bgstack15@gmail.com> | 2020-01-12 18:49:00 -0500 |
---|---|---|
committer | B Stack <bgstack15@gmail.com> | 2020-01-12 18:49:00 -0500 |
commit | 0590a8a7b16b041da72c1d3cfc3a92975370bc2e (patch) | |
tree | ccfc58630a559c158eb75788b6383935ced3be26 | |
parent | WIP: add most parsing (diff) | |
download | systemdtl-0590a8a7b16b041da72c1d3cfc3a92975370bc2e.tar.gz systemdtl-0590a8a7b16b041da72c1d3cfc3a92975370bc2e.tar.bz2 systemdtl-0590a8a7b16b041da72c1d3cfc3a92975370bc2e.zip |
actually execute action list
-rwxr-xr-x | src/sbin/systemctl | 11 |
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 |