Update defaults.inc

This commit is contained in:
2019-02-11 12:00:22 -06:00
parent b84d865004
commit f245b70061

View File

@@ -92,10 +92,11 @@ DISP_HEADER(){
lastrun_item=$(echo ${lastrun_item} | sed "s/-/ /g")
lastrun_date=$(stat -c %y ${lastrun})
IFS=' '; lastrun_date=(${lastrun_date}); unset IFS
IFS='.'; lastrun_time=(${lastrun_date[1]}); unset IFS
c=0; cw=18; spc=''
spc1=${cw}-${#lastrun_item}
until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
echo -e " ${lastrun_item~}${spc}: ${lastrun_date[0]} ${lastrun_date[1]}"
echo -e " ${lastrun_item~}${spc}: ${lastrun_date[0]} ${lastrun_time}"
done
DIVIDER