consistent indention

This commit is contained in:
2025-04-11 21:24:37 +02:00
parent f6a35c3ffe
commit 112132cb46

View File

@ -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]}"