Index: trunk/DataCheck/Sourcefile.sh
===================================================================
--- trunk/DataCheck/Sourcefile.sh	(revision 18762)
+++ trunk/DataCheck/Sourcefile.sh	(revision 18763)
@@ -90,4 +90,5 @@
    fi
    printprocesslog "DEBUG finished "$SOURCEFILEPATH"/"$SCRIPTNAME
+   # fixme: handle different cases - sometimes exit of script is needed, sometimes only continue
    exit
 }
@@ -196,4 +197,5 @@
       error=`echo $val | grep -E -o 'ERROR [1-9]{1,4}' | grep -E -o '[1-9]{1,4}'`
       # here possible reaction to mysql error
+      val=
       finish
    fi
@@ -467,10 +469,11 @@
    # execute query
    numchanged=`sendquery`
-   #echo "numchanged: "$numchanged
-   #if ! numchanged=`mysql -s -u $us --password=$pw --host=$ho $db -e " $query "`
-   #then
-   #   printprocesslog "ERROR could not set status in db (program: $program, function setstatus)"
-   #   finish
-   #fi
+   # should not be needed anymore once finish does proper exit
+   printprocesslog "DEBUG numchanged "$numchanged
+   if [ "$numchanged" = "" ]
+   then
+      printprocesslog "DEBUG numchanged empty."
+      finish
+   fi
    if [ $numchanged -gt 0 ]
    then
