[Fai-commit] r5989 - branches/stable/3.4/lib

Michael Prokop mika at alioth.debian.org
Tue Aug 17 12:54:32 UTC 2010


Author: mika
Date: 2010-08-17 12:54:31 +0000 (Tue, 17 Aug 2010)
New Revision: 5989

Modified:
   branches/stable/3.4/lib/subroutines
Log:
add different implementation for dumping variables, thanks to Andreas Schuldei


Signed-off-by: Michael Prokop <mika at grml.org>

Modified: branches/stable/3.4/lib/subroutines
===================================================================
--- branches/stable/3.4/lib/subroutines	2010-08-17 12:54:27 UTC (rev 5988)
+++ branches/stable/3.4/lib/subroutines	2010-08-17 12:54:31 UTC (rev 5989)
@@ -385,8 +385,10 @@
 	rm $svar
     fi
     unset class svar
-    # now all variables are defined. Dump them to variables.log
+    # now all variables are defined. Dump them to variables.log, so we can sources them if needed
     set | perl -ne 'print if /^\w\w+=/ and not /^(EUID|PPID|SHELLOPTS|UID|rootpw|ROOTPW|HOME|PWD)|\(/' > $LOGDIR/variables.log
+    # another approach is to use this. A slightly different format, but seems to be robust.
+    # declare -x > $LOGDIR/variables.log
     cd $odir
 }
 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -




More information about the Fai-commit mailing list