mirror of
https://github.com/sbopkg/sbopkg
synced 2024-11-09 19:50:25 +03:00
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:
parent
d91fc3842a
commit
7905937465
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user