appimage: fix spacing in argument parsing

This commit is contained in:
Mike Salvatore 2021-05-03 09:32:07 -04:00
parent 998a14d248
commit f475df7c9c
1 changed files with 32 additions and 32 deletions

View File

@ -302,42 +302,42 @@ monkey_version="dev"
while (( "$#" )); do while (( "$#" )); do
case "$1" in case "$1" in
--agent-binary-dir) --agent-binary-dir)
exit_if_missing_argument "$1" "$2" exit_if_missing_argument "$1" "$2"
agent_binary_dir=$2 agent_binary_dir=$2
shift 2 shift 2
;; ;;
--as-root) --as-root)
as_root=true as_root=true
shift shift
;; ;;
--branch) --branch)
exit_if_missing_argument "$1" "$2" exit_if_missing_argument "$1" "$2"
branch=$2 branch=$2
shift 2 shift 2
;; ;;
-h|--help) -h|--help)
echo_help echo_help
;; ;;
--monkey-repo) --monkey-repo)
exit_if_missing_argument "$1" "$2" exit_if_missing_argument "$1" "$2"
monkey_repo=$2 monkey_repo=$2
shift 2 shift 2
;; ;;
--version) --version)
exit_if_missing_argument "$1" "$2" exit_if_missing_argument "$1" "$2"
monkey_version=$2 monkey_version=$2
shift 2 shift 2
;; ;;
*) *)
echo "Error: Unsupported parameter $1" >&2 echo "Error: Unsupported parameter $1" >&2
exit 1 exit 1
;; ;;
esac esac
done done