[Fai-commit] r5472 - trunk/bin
Thomas Lange
lange at alioth.debian.org
Tue Jul 21 18:14:45 UTC 2009
Author: lange
Date: 2009-07-21 18:14:42 +0000 (Tue, 21 Jul 2009)
New Revision: 5472
Modified:
trunk/bin/fai-do-scripts
Log:
add comment
Modified: trunk/bin/fai-do-scripts
===================================================================
--- trunk/bin/fai-do-scripts 2009-07-21 17:42:08 UTC (rev 5471)
+++ trunk/bin/fai-do-scripts 2009-07-21 18:14:42 UTC (rev 5472)
@@ -38,7 +38,7 @@
# TODO: -n only shows which scripts should be executed, but do not execute them
-maxstatus=0
+maxstatus=0 # since maxstatus is set inside a pipe, the value is not available at the end
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
savemaxstatus() {
@@ -188,5 +188,6 @@
call_conf $1
# move error number from child scripts to 100+x if any error happened
-[ $maxstatus -gt 0 ] && maxstatus=$((100+$maxstatus))
+# this does not work atm, cause fc_check.. is called inside a pipe
+# [ $maxstatus -gt 0 ] && maxstatus=$((100+$maxstatus))
exit $maxstatus
More information about the Fai-commit
mailing list