add SBOPKG_DEBUG

Set this to anything and avoid the stupid sucking side effects of
redirecting stderr.

Also abbreviated a comment right above what I added - it's not first run
but every run and the end of functions pretty much implies the start of
main.
This commit is contained in:
slakmagik 2011-03-10 04:17:22 +00:00
parent d91fc3842a
commit 7905937465

View File

@ -4389,8 +4389,13 @@ main_menu() {
done
}
# END OF FUNCTIONS. What comes below is the actual start of the
# script when it is first run.
# END OF FUNCTIONS
if [[ $SBOPKG_DEBUG ]]; then
exec 3>~/debug.out
BASH_XTRACEFD=3
set -x
fi
trap 'control_c; trap INT; kill -2 $$' INT
trap 'exit 2' HUP QUIT PIPE TERM