diff --git a/dev/bootstrap.sh b/dev/bootstrap.sh index c202cb8..bb663c7 100755 --- a/dev/bootstrap.sh +++ b/dev/bootstrap.sh @@ -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