range fixes

This commit is contained in:
olli 2023-10-30 16:43:53 +01:00
parent d90a381d6d
commit 6d4a21dd44

View File

@ -15,11 +15,14 @@ function get_range {
# Check for new range
local f_last_range_day=$(tail -n2 ${f_hist_file} | head -n1 | cut -d, -f24)
if echo "${f_latest_date}" | grep -q ${f_last_range_day}
if [ -n "${f_last_range_day}" ]
then
if echo "${f_range_day}" | grep -q "${f_last_range_day}"
then
g_echo_note "${FUNCNAME} $@: No new range"
return 1
fi
fi
if [ -n "${f_range_data}" ]
then