khos2ow commented on a change in pull request #2433: Fix and enhance package
script
URL: https://github.com/apache/cloudstack/pull/2433#discussion_r165120077
##########
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:
Correct. Shouldn't we update packaging job to have _correct_ flags rather
than changing package.sh script to be able to tolerate _incorrect_ flags?
----------------------------------------------------------------
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