From 4c26e318a3cc08bcdcb8149fef7a6d90aa787033 Mon Sep 17 00:00:00 2001 From: Jelle Raaijmakers Date: Sun, 25 Apr 2021 00:27:58 +0200 Subject: [PATCH] Ports: Pass along any command arguments in package.sh Commit b3db01e20 broke simple commands without arguments like: ./package.sh clean Now, all available arguments are passed along, even if there are none. --- Ports/.port_include.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Ports/.port_include.sh b/Ports/.port_include.sh index 3a73cee40a..d6ef883a22 100755 --- a/Ports/.port_include.sh +++ b/Ports/.port_include.sh @@ -398,7 +398,9 @@ parse_arguments() { else case "$1" in fetch|patch|configure|build|install|installdepends|clean|clean_dist|clean_all|uninstall|showproperty) - do_$1 $2 + method=$1 + shift + do_${method} "$@" ;; --auto) do_all $1