Update defaults.inc

This commit is contained in:
2019-02-11 00:14:24 -06:00
parent 4c7a909047
commit 7d9613f55f

View File

@@ -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