Skip to content

Commit

Permalink
Update build.sh script to include optional platform param. (opensearc…
Browse files Browse the repository at this point in the history
…h-project#95)

Signed-off-by: Marc Handalian <[email protected]>
  • Loading branch information
mch2 authored Nov 12, 2021
1 parent 8b9669e commit 0d509ce
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,13 @@ function usage() {
echo "Arguments:"
echo -e "-v VERSION\t[Required] OpenSearch version."
echo -e "-s SNAPSHOT\t[Optional] Build a snapshot, default is 'false'."
echo -e "-p PLATFORM\t[Optional] Platform, ignored."
echo -e "-a ARCHITECTURE\t[Optional] Build architecture, ignored."
echo -e "-o OUTPUT\t[Optional] Output path, default is 'artifacts'."
echo -e "-h help"
}

while getopts ":h:v:s:o:a:" arg; do
while getopts ":h:v:s:o:p:a:" arg; do
case $arg in
h)
usage
Expand All @@ -31,6 +32,9 @@ while getopts ":h:v:s:o:a:" arg; do
o)
OUTPUT=$OPTARG
;;
p)
PLATFORM=$OPTARG
;;
a)
ARCHITECTURE=$OPTARG
;;
Expand Down

0 comments on commit 0d509ce

Please sign in to comment.