Skip to content

Commit

Permalink
make odir not appear in variables.log
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrfai committed Dec 6, 2022
1 parent c8c1f78 commit 72f824f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/subroutines
Original file line number Diff line number Diff line change
Expand Up @@ -594,12 +594,12 @@ task_defvar() {
grep ^++ $svar
rm $svar
fi
unset class svar
cd $odir
unset class svar odir
# 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|USERPW|HOME|PWD|BASHOPTS)|\(/' > $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
}
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
task_mountdisks() {
Expand Down

0 comments on commit 72f824f

Please sign in to comment.