From 112132cb46e134076b2948b78cf0674a7af5393d Mon Sep 17 00:00:00 2001 From: Sven Augustin Date: Fri, 11 Apr 2025 21:24:37 +0200 Subject: [PATCH] consistent indention --- autodeploy/download.sh | 54 +++++++++++++++++++++--------------------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/autodeploy/download.sh b/autodeploy/download.sh index 4aa94bd..86d6127 100755 --- a/autodeploy/download.sh +++ b/autodeploy/download.sh @@ -25,36 +25,36 @@ BINARY="" POSITIONAL_ARGS=() while [[ $# -gt 0 ]]; do - case "$1" in - -a|--archive) - ARCHIVE="$2" - shift 2 - ;; - -b|--binary) - BINARY="$2" - shift 2 - ;; - -h|--help) - print_help - exit 0 - ;; - -*) - echo "Unknown option: $1" - print_help - exit 1 - ;; - *) - POSITIONAL_ARGS+=("$1") - shift - ;; - esac + case "$1" in + -a|--archive) + ARCHIVE="$2" + shift 2 + ;; + -b|--binary) + BINARY="$2" + shift 2 + ;; + -h|--help) + print_help + exit 0 + ;; + -*) + echo "Unknown option: $1" + print_help + exit 1 + ;; + *) + POSITIONAL_ARGS+=("$1") + shift + ;; + esac done if [[ ${#POSITIONAL_ARGS[@]} -ne 1 ]]; then - echo "Error: Missing required positional argument: URL" - echo - print_help - exit 1 + echo "Error: Missing required positional argument: URL" + echo + print_help + exit 1 fi URL="${POSITIONAL_ARGS[0]}"