Changeset 18763


Ignore:
Timestamp:
02/18/17 15:40:39 (8 years ago)
Author:
Daniela Dorner
Message:
handle empty $numchanged
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataCheck/Sourcefile.sh

    r18762 r18763  
    9090   fi
    9191   printprocesslog "DEBUG finished "$SOURCEFILEPATH"/"$SCRIPTNAME
     92   # fixme: handle different cases - sometimes exit of script is needed, sometimes only continue
    9293   exit
    9394}
     
    196197      error=`echo $val | grep -E -o 'ERROR [1-9]{1,4}' | grep -E -o '[1-9]{1,4}'`
    197198      # here possible reaction to mysql error
     199      val=
    198200      finish
    199201   fi
     
    467469   # execute query
    468470   numchanged=`sendquery`
    469    #echo "numchanged: "$numchanged
    470    #if ! numchanged=`mysql -s -u $us --password=$pw --host=$ho $db -e " $query "`
    471    #then
    472    #   printprocesslog "ERROR could not set status in db (program: $program, function setstatus)"
    473    #   finish
    474    #fi
     471   # should not be needed anymore once finish does proper exit
     472   printprocesslog "DEBUG numchanged "$numchanged
     473   if [ "$numchanged" = "" ]
     474   then
     475      printprocesslog "DEBUG numchanged empty."
     476      finish
     477   fi
    475478   if [ $numchanged -gt 0 ]
    476479   then
Note: See TracChangeset for help on using the changeset viewer.