From 7ff99cb51696b99f8ef4385163aed63ab25a87c7 Mon Sep 17 00:00:00 2001 From: Jelle Raaijmakers Date: Wed, 20 Oct 2021 00:14:40 +0200 Subject: [PATCH] Ports: Return early in parse_arguments() in .port_include.sh --- Ports/.port_include.sh | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/Ports/.port_include.sh b/Ports/.port_include.sh index acfab9ec14..25603c95df 100755 --- a/Ports/.port_include.sh +++ b/Ports/.port_include.sh @@ -525,27 +525,27 @@ NO_GPG=false parse_arguments() { if [ -z "${1:-}" ]; then do_all - else - case "$1" in - fetch|patch|shell|configure|build|install|installdepends|clean|clean_dist|clean_all|uninstall|showproperty) - method=$1 - shift - do_${method} "$@" - ;; - --auto) - do_all $1 - ;; - --no-gpg-verification) - NO_GPG=true - shift - parse_arguments $@ - ;; - *) - >&2 echo "I don't understand $1! Supported arguments: fetch, patch, configure, build, install, installdepends, clean, clean_dist, clean_all, uninstall, showproperty." - exit 1 - ;; - esac + return fi + case "$1" in + fetch|patch|shell|configure|build|install|installdepends|clean|clean_dist|clean_all|uninstall|showproperty) + method=$1 + shift + do_${method} "$@" + ;; + --auto) + do_all $1 + ;; + --no-gpg-verification) + NO_GPG=true + shift + parse_arguments $@ + ;; + *) + >&2 echo "I don't understand $1! Supported arguments: fetch, patch, configure, build, install, installdepends, clean, clean_dist, clean_all, uninstall, showproperty." + exit 1 + ;; + esac } parse_arguments $@