syntax fix
authorRalph Ronnquist <ralph.ronnquist@gmail.com>
Thu, 10 Dec 2020 01:31:46 +0000 (12:31 +1100)
committerRalph Ronnquist <ralph.ronnquist@gmail.com>
Thu, 10 Dec 2020 01:31:46 +0000 (12:31 +1100)
sss.sh

diff --git a/sss.sh b/sss.sh
index 0207686ef7a3e54d510fb0080852fa056a9cebf7..085bffc481e03462e62c91b3e50a71b5d38288c2 100755 (executable)
--- 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"