[Fai-commit] r4706 - trunk/bin

lange at alioth.debian.org lange at alioth.debian.org
Sun Nov 11 10:26:31 UTC 2007


Author: lange
Date: 2007-11-11 10:26:31 +0000 (Sun, 11 Nov 2007)
New Revision: 4706

Modified:
   trunk/bin/make-fai-nfsroot
Log:
make stamp only on success (closes: #370780)


Modified: trunk/bin/make-fai-nfsroot
===================================================================
--- trunk/bin/make-fai-nfsroot	2007-11-11 10:25:53 UTC (rev 4705)
+++ trunk/bin/make-fai-nfsroot	2007-11-11 10:26:31 UTC (rev 4706)
@@ -162,8 +162,8 @@
     local stamp=$RUNDIR/$func
     # call subroutine
     [ "$recover" -a -f $stamp ] && return 0 
-    "$@"
-    > $stamp
+    # make a stamp only on success.
+    "$@" && : > $stamp
 }
 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 call_verbose() {




More information about the Fai-commit mailing list