From 9c945c5b5ea4d28d65682c987a8c68a4d9c7d0a8 Mon Sep 17 00:00:00 2001 From: Sebastian Ertz Date: Sat, 27 Jun 2026 14:24:17 +0200 Subject: [PATCH] make.sh: fix argument handling --- .gitignore | 1 + make.sh | 14 +++++++------- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 378eac2..ed8a3ef 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ build +dbgbuild diff --git a/make.sh b/make.sh index bb268ed..6957992 100755 --- a/make.sh +++ b/make.sh @@ -24,6 +24,13 @@ INSTALL="0" SRC="0" YES="" +case "${1%/}" in + -y|--yes) + YES="-y" + shift + ;; +esac + case "${1%/}" in deps) DEPS="1" @@ -64,13 +71,6 @@ case "${1%/}" in INSTALL="1" ;; - -y) - YES="-y" - ;; - - --yes) - YES="-y" - ;; *) echo "usage: make.sh [OPTIONS] ACTION"