2
0
mirror of https://github.com/deajan/osync synced 2024-11-03 15:40:14 +00:00

bootstrap can now use BASH_VERBOSE=yes

This commit is contained in:
deajan 2018-03-22 17:24:04 +01:00
parent ee8016ef9a
commit f627daf25a

View File

@ -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