From 7d9613f55fcdf310b015a79759f62319035ebb94 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Mon, 11 Feb 2019 00:14:24 -0600 Subject: [PATCH] Update defaults.inc --- defaults.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/defaults.inc b/defaults.inc index 27772b79..7dfab024 100755 --- a/defaults.inc +++ b/defaults.inc @@ -85,7 +85,7 @@ DISP_HEADER(){ done DIVIDER if [ $(ls -1 ${FOLDER}/*.lastrun 2>/dev/null | wc -l) != 0 ];then - + echo -e "Lastrun Items:" for lastrun in ${FOLDER}/*.lastrun ; do IFS='/'; lastrun_item=(${lastrun}); unset IFS lastrun_item=$(echo ${lastrun_item[4]} | sed "s/.lastrun//g") @@ -93,6 +93,10 @@ DISP_HEADER(){ lastrun_date=$(stat -c %y ${lastrun}) IFS=' '; lastrun_date=(${lastrun_date}); unset IFS echo "${lastrun_item~} - ${lastrun_date[0]}" + c=0; cw=18; spc='' + spc1=${cw}-${#NM_SERVICES[${srvc}]} + until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done + echo -en " ${lastrun_item~}${spc}: ${lastrun_date[0]}" done DIVIDER