From: Ralph Ronnquist Date: Thu, 10 Dec 2020 01:31:46 +0000 (+1100) Subject: syntax fix X-Git-Url: https://git.rrq.au/?a=commitdiff_plain;h=f25fefda261bc372105f79bb50dd543b7b58a6fb;p=rrq%2Fnilfs2sss.git syntax fix --- 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"