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

Bootstrap fixes from osync

This commit is contained in:
deajan 2019-05-21 11:45:13 +02:00
parent f9af20fe3b
commit 01d6588d15

View File

@ -1,6 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
## dev pre-processor bootstrap rev 2018100201 ## dev pre-processor bootstrap rev 2019052001
## 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 {
@ -19,16 +19,16 @@ if [ ! -f "./merge.sh" ]; then
fi fi
bootstrapProgram="" bootstrapProgram=""
opts="" opts=()
outputFileName="$0" outputFileName="$0"
for i in "$@"; do for i in "${@}"; do
case $i in case "$i" in
--program=*) --program=*)
bootstrapProgram="${i##*=}" bootstrapProgram="${i##*=}"
;; ;;
*) *)
opts=$opts" $i" opts+=("$i")
;; ;;
esac esac
done done
@ -69,7 +69,7 @@ if type termux-fix-shebang > /dev/null 2>&1; then
fi fi
if [ "$BASHVERBOSE" == "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[@]}"
fi fi