1
0
mirror of https://github.com/deajan/obackup.git synced 2024-11-15 04:03:41 +01:00

Update bootstrap

This commit is contained in:
deajan 2018-10-02 21:21:58 +02:00
parent 657f828c74
commit 8079a2e9a5

View File

@ -1,6 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
## dev pre-processor bootstrap rev 2018032201 ## dev pre-processor bootstrap rev 2018100201
## Yeah !!! A really tech sounding name... In fact it's just include emulation in bash ## Yeah !!! A really tech sounding name... In fact it's just include emulation in bash
function Usage { function Usage {
@ -8,8 +8,8 @@ function Usage {
echo "Creates and executes $0.tmp.sh" echo "Creates and executes $0.tmp.sh"
echo "Usage:" echo "Usage:"
echo "" echo ""
echo "$0 --program=osync|osync_target_helper|obackup|pmocr [options to pass to program]" echo "$0 --program=osync|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" echo "Can also be run with BASHVERBOSE=yes environment variable in order to prefix program with bash -x"
} }
@ -44,7 +44,7 @@ else
__PREPROCESSOR_Constants __PREPROCESSOR_Constants
if [ ! -f "$__PREPROCESSOR_PROGRAM_EXEC" ]; then if [ ! -f "$__PREPROCESSOR_PROGRAM_EXEC" ]; then
echo "Cannot find file [n_$bootstrapProgram.sh]." echo "Cannot find file $__PREPROCESSOR_PROGRAM executable [n_$bootstrapProgram.sh]."
exit 1 exit 1
fi fi
fi fi
@ -68,7 +68,7 @@ if type termux-fix-shebang > /dev/null 2>&1; then
termux-fix-shebang "$outputFileName.tmp.sh" termux-fix-shebang "$outputFileName.tmp.sh"
fi fi
if [ "$BASH_VERBOSE" == "yes" ]; then if [ "$BASHVERBOSE" == "yes" ]; then
bash -x "$outputFileName.tmp.sh" $opts bash -x "$outputFileName.tmp.sh" $opts
else else
"$outputFileName.tmp.sh" $opts "$outputFileName.tmp.sh" $opts