Skip to content

Commit

Permalink
Update build.sh to take platform parameter. (#240)
Browse files Browse the repository at this point in the history
Signed-off-by: Marc Handalian <[email protected]>
  • Loading branch information
mch2 authored Nov 12, 2021
1 parent 3a35bb6 commit 15bb70b
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 @@ -15,11 +15,12 @@ function usage() {
echo -e "-v VERSION\t[Required] OpenSearch version."
echo -e "-s SNAPSHOT\t[Optional] Build a snapshot, default is 'false'."
echo -e "-a ARCHITECTURE\t[Optional] Build architecture, ignored."
echo -e "-p PLATFORM\t[Optional] Platform, 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 @@ -34,6 +35,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 15bb70b

Please sign in to comment.