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.
This commit is contained in:
Jelle Raaijmakers 2021-04-25 00:27:58 +02:00 committed by Linus Groh
commit 4c26e318a3
Notes: sideshowbarker 2024-07-18 19:08:57 +09:00

View file

@ -398,7 +398,9 @@ parse_arguments() {
else else
case "$1" in case "$1" in
fetch|patch|configure|build|install|installdepends|clean|clean_dist|clean_all|uninstall|showproperty) fetch|patch|configure|build|install|installdepends|clean|clean_dist|clean_all|uninstall|showproperty)
do_$1 $2 method=$1
shift
do_${method} "$@"
;; ;;
--auto) --auto)
do_all $1 do_all $1