Index: trunk/MagicSoft/Mars/datacenter/scripts/sourcefile
===================================================================
--- trunk/MagicSoft/Mars/datacenter/scripts/sourcefile	(revision 7473)
+++ trunk/MagicSoft/Mars/datacenter/scripts/sourcefile	(revision 7474)
@@ -47,4 +47,6 @@
 datasetpath=/magic/datasets
 
+check="ok"
+
 
 function makedir()
@@ -92,5 +94,5 @@
        stop)   echo "stop"
                case $check in
-                  0)  echo " ok"
+                 ok)  echo " ok"
                       statustime="Now()"
                       ;;
@@ -107,5 +109,4 @@
                ;;
    esac
-   check=
 
 #   printstatusvalues
@@ -116,6 +117,6 @@
    checkstatus=`root -q -b $macrospath/setstatus.C+\("\"$sequence\""\,"\"$table\""\,"\"$column\""\,"\"$statustime\""\,"\"$failedcode\""\,"\"$failedcomment\""\,"\"$starttime\""\,"\"$failedtime\""\) | tee $setstatuslog | grep int | sed -e 's/(int)//'`
    case $checkstatus in
-      1)   echo "checkstatus=$checkstatus -> everything ok, status has been set"
-      *)   echo "checkstatus=$checkstatus -> ERROR -> step could not be set"
+      1)   echo "checkstatus=$checkstatus -> everything ok, status has been set";;
+      *)   echo "checkstatus=$checkstatus -> ERROR -> step could not be set";;
    esac
 }
