mirror of
https://github.com/DrewThomasson/ebook2audiobook.git
synced 2026-01-09 22:08:13 -05:00
...
This commit is contained in:
@@ -71,12 +71,14 @@ while (( $# > 0 )); do
|
||||
case "$1" in
|
||||
--*)
|
||||
key="${1#--}"
|
||||
if [[ -n "${2}:-" && "$2" != --* ]]; then
|
||||
arguments[$key]="$2"
|
||||
if (( $# > 1 )) && [[ "$2" != --* ]]; then
|
||||
arguments["$key"]="$2"
|
||||
shift 2
|
||||
continue
|
||||
else
|
||||
arguments[$key]=true
|
||||
arguments["$key"]=true
|
||||
shift
|
||||
continue
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
@@ -84,9 +86,9 @@ while (( $# > 0 )); do
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
shift
|
||||
done
|
||||
|
||||
|
||||
if [[ -n "${arguments[script_mode]+exists}" ]]; then
|
||||
if [[ "${arguments[script_mode]}" == "$BUILD_DOCKER" ]]; then
|
||||
SCRIPT_MODE="${arguments[script_mode]}"
|
||||
|
||||
Reference in New Issue
Block a user