From 814e5d21ddda2b7a0e6fcc9b12556e62b278c6b1 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 5 Jan 2019 12:54:10 -0600 Subject: [PATCH] Update mysqlbu-scripts.sh --- mysqlbu-scripts.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/mysqlbu-scripts.sh b/mysqlbu-scripts.sh index bca7f99..57b7985 100755 --- a/mysqlbu-scripts.sh +++ b/mysqlbu-scripts.sh @@ -118,9 +118,12 @@ case $1 in echo -e "${CS[bg,Blue]}${CS[color,White]}-> `date -d"${tdt}" +"%a, %b, %d %Y"` ${CS[color,Default]}${CS[bg,Default]}" for hour in $day/* ; do - echo $hour thr=`sed 's/.*\///' <<< ${hour//_BASE/}` - echo -e "${CS[color,Green]} -> `date -d"${tdt} ${thr//-/:}" +"%I:%M %P"`${CS[color,Default]}" + if [ "`${hour: -5}`" = "_BASE" ]; then + echo -e "${CS[color,LightGreen]} -> `date -d"${tdt} ${thr//-/:}" +"%I:%M %P"` - BASE${CS[color,Default]}" + else + echo -e "${CS[color,Green]} -> `date -d"${tdt} ${thr//-/:}" +"%I:%M %P"`${CS[color,Default]}" + fi done done echo -e "${CS[color,Yellow]}===========================================${CS[color,Default]}"