Index: trunk/MagicSoft/Mars/datacenter/scripts/sourcefile
===================================================================
--- trunk/MagicSoft/Mars/datacenter/scripts/sourcefile	(revision 7477)
+++ trunk/MagicSoft/Mars/datacenter/scripts/sourcefile	(revision 7479)
@@ -50,4 +50,12 @@
 
 
+function finish()
+{
+   rm -v $todofile
+   rm -v $lockfile
+   date 
+   exit
+}
+
 function makedir()
 {
@@ -58,15 +66,7 @@
      then 
         echo "could not make dir "$@
-        exit
+        finish
      fi
    fi
-}
-
-function finish()
-{
-   rm -v $todofile
-   rm -v $lockfile
-   date 
-   exit
 }
 
