range fixes
This commit is contained in:
parent
d90a381d6d
commit
6d4a21dd44
@ -15,11 +15,14 @@ function get_range {
|
|||||||
|
|
||||||
# Check for new range
|
# Check for new range
|
||||||
local f_last_range_day=$(tail -n2 ${f_hist_file} | head -n1 | cut -d, -f24)
|
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
|
then
|
||||||
g_echo_note "${FUNCNAME} $@: No new range"
|
g_echo_note "${FUNCNAME} $@: No new range"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -n "${f_range_data}" ]
|
if [ -n "${f_range_data}" ]
|
||||||
then
|
then
|
||||||
|
Loading…
Reference in New Issue
Block a user