rhtyd commented on a change in pull request #2433: Fix and enhance package
script
URL: https://github.com/apache/cloudstack/pull/2433#discussion_r165130789
##########
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:
The issue is to support the same jenkins jobs and scripts to work with
packaging older releases. I think the script should ignore unknown flags and
their values but not fail otherwise.
----------------------------------------------------------------
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