bootstrap can now use BASH_VERBOSE=yes

pull/144/head
deajan 6 years ago
parent ee8016ef9a
commit f627daf25a

@ -1,6 +1,6 @@
#!/usr/bin/env bash
## dev pre-processor bootstrap rev 2017062001
## dev pre-processor bootstrap rev 2018032201
## Yeah !!! A really tech sounding name... In fact it's just include emulation in bash
function Usage {
@ -9,6 +9,7 @@ function Usage {
echo "Usage:"
echo ""
echo "$0 --program=osync|osync_target_helper|obackup|pmocr [options to pass to program]"
echo "Can also be run with BASHVERBOSE=YES environment variable in order to prefix program with bash -x"
}
@ -67,4 +68,8 @@ if type termux-fix-shebang > /dev/null 2>&1; then
termux-fix-shebang "$outputFileName.tmp.sh"
fi
"$outputFileName.tmp.sh" $opts
if [ "$BASH_VERBOSE" == "yes" ]; then
bash -x "$outputFileName.tmp.sh" $opts
else
"$outputFileName.tmp.sh" $opts
fi

Loading…
Cancel
Save