From 0590a8a7b16b041da72c1d3cfc3a92975370bc2e Mon Sep 17 00:00:00 2001 From: B Stack Date: Sun, 12 Jan 2020 18:49:00 -0500 Subject: actually execute action list --- src/sbin/systemctl | 11 +++++++++-- 1 file 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 -- cgit