Another week fix.

master
Holger Wirtz 5 years ago
parent d79f86b94b
commit ec2d726fec
  1. 2
      bin/timelapse_weekly.sh

@ -41,7 +41,7 @@ weekly_counter=0
for i in `find ${DATA}/data/ -name "${DATE}*.jpg"` for i in `find ${DATA}/data/ -name "${DATE}*.jpg"`
do do
seconds_unixtime=`echo "${i}" | sed 's/^.\+_\([0-9]\+\).*/\1/'` 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 then
weekly_counter=$((weekly_counter + 1)) weekly_counter=$((weekly_counter + 1))
if [ ${weekly_counter} -ge 7 ] if [ ${weekly_counter} -ge 7 ]

Loading…
Cancel
Save