Commit 581eeff8 authored by Dan Reading's avatar Dan Reading
Browse files

fix test against string test of empty variable

parent ccba926f
......@@ -475,7 +475,7 @@ compareunits() {
# and we care about order report it
# NOTE: if !local or !tb then not out of order, just a missmatch
[[ -z "${offline-}" ]] && declare -i offline=0 # if set from gen_sql
if [ ${localunits} -a ${tbdbunits} ] ; then
if [ "${localunits}" -a "${tbdbunits}" ] ; then
(( ! $offline )) && printf "ERROR %s%s OUT OF ORDER found %s from tbdb %s\n" "${unit_human_output}" "s:" "$localunits" "$tbdbunits"
(( ! $offline )) && ( printf "ERROR %s OUT OF ORDER found %s from tbdb %s\n" "${unit_human_output}" "$localunits" "$tbdbunits" >> $fileout ) || ( printf "WARNING %s%s ORDER '%s' compared to '%s'\n" "${unit_human_output}" "s:" "$localunits" "$tbdbunits" >> $fileout )
else
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment