From ec2d726fec9631c459e47a71b469ee4207c95fd5 Mon Sep 17 00:00:00 2001 From: Holger Wirtz Date: Wed, 14 Aug 2019 15:39:14 +0200 Subject: [PATCH] Another week fix. --- bin/timelapse_weekly.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/timelapse_weekly.sh b/bin/timelapse_weekly.sh index 8d8f6f5..f87a63d 100755 --- a/bin/timelapse_weekly.sh +++ b/bin/timelapse_weekly.sh @@ -41,7 +41,7 @@ weekly_counter=0 for i in `find ${DATA}/data/ -name "${DATE}*.jpg"` do seconds_unixtime=`echo "${i}" | sed 's/^.\+_\([0-9]\+\).*/\1/'` - if [ "${seconds_unixtime}" -ge "${DATE_START}" ] || [ "${seconds_unixtime}" -lt "${DATE_STOP}" ] + if [ "${seconds_unixtime}" -ge "${DATE_START}" ] && [ "${seconds_unixtime}" -lt "${DATE_STOP}" ] then weekly_counter=$((weekly_counter + 1)) if [ ${weekly_counter} -ge 7 ]