summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelle Raaijmakers <jelle@gmta.nl>2021-04-25 00:27:58 +0200
committerLinus Groh <mail@linusgroh.de>2021-04-25 00:38:27 +0200
commit4c26e318a3cc08bcdcb8149fef7a6d90aa787033 (patch)
treeebe20cb288747ead82ec755d65da0133f930e571
parent54f5b1346c191fc2cc3a0c9a66e1bb063c05a827 (diff)
downloadserenity-4c26e318a3cc08bcdcb8149fef7a6d90aa787033.zip
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.
-rwxr-xr-xPorts/.port_include.sh4
1 files changed, 3 insertions, 1 deletions
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