rhtyd commented on a change in pull request #2433: Fix and enhance package
script
URL: https://github.com/apache/cloudstack/pull/2433#discussion_r165118491
##########
File path: packaging/package.sh
##########
@@ -155,31 +170,30 @@ while [ $# -gt 0 ] ; do
usage
exit 1
fi
- shift
+ shift 2
;;
+
-d | --distribution)
TARGETDISTRO=$2
if [ -z "$TARGETDISTRO" ] ; then
echo "Error: Missing target distribution"
usage
exit 1
fi
- shift
+ shift 2
;;
+
-r | --release)
RELEASE=$2
- shift
+ shift 2
;;
- -)
+
+ -*|*)
Review comment:
@khos2ow this change, fails the packaging job when -o is passed.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services