From f25fefda261bc372105f79bb50dd543b7b58a6fb Mon Sep 17 00:00:00 2001 From: Ralph Ronnquist Date: Thu, 10 Dec 2020 12:31:46 +1100 Subject: [PATCH] syntax fix --- sss.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sss.sh b/sss.sh index 0207686..085bffc 100755 --- a/sss.sh +++ b/sss.sh @@ -49,12 +49,12 @@ function marksnap() { marksnap YEAR "${DATE:0:4}" $CNO elif [[ "$TS" > "$MONTHLY" ]] marksnap MONTH "${DATE:5:2}" $CNO - elif [[ "$TS" > "$WEEKLY" ]] + elif [[ "$TS" > "$WEEKLY" ]] ; then # For older than most recent week, keep last snapshot each week marksnap WEEK "$(( 7${DATE:8:2} / 7 - 100 ))" $CNO - elif [[ "$TS" > "$DAILY" ]] + elif [[ "$TS" > "$DAILY" ]] ; then marksnap DAY "${DATE:8:2}" $CNO - elif [[ "$TS" > "$HOURLY" ]] + elif [[ "$TS" > "$HOURLY" ]] ; then marksnap HOUR "${DATE:8:2}-${TIME:0:2}" $CNO else echo "$CNO $DATE $TIME within last hour" -- 2.39.2