Skip to content

Commit 316f360

Browse files
mch2getsaurabh02
authored andcommitted
Update build.sh script to include optional platform param. (opensearch-project#95)
Signed-off-by: Marc Handalian <handalm@amazon.com>
1 parent b29fcb5 commit 316f360

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scripts/build.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,13 @@ function usage() {
1111
echo "Arguments:"
1212
echo -e "-v VERSION\t[Required] OpenSearch version."
1313
echo -e "-s SNAPSHOT\t[Optional] Build a snapshot, default is 'false'."
14+
echo -e "-p PLATFORM\t[Optional] Platform, ignored."
1415
echo -e "-a ARCHITECTURE\t[Optional] Build architecture, ignored."
1516
echo -e "-o OUTPUT\t[Optional] Output path, default is 'artifacts'."
1617
echo -e "-h help"
1718
}
1819

19-
while getopts ":h:v:s:o:a:" arg; do
20+
while getopts ":h:v:s:o:p:a:" arg; do
2021
case $arg in
2122
h)
2223
usage
@@ -31,6 +32,9 @@ while getopts ":h:v:s:o:a:" arg; do
3132
o)
3233
OUTPUT=$OPTARG
3334
;;
35+
p)
36+
PLATFORM=$OPTARG
37+
;;
3438
a)
3539
ARCHITECTURE=$OPTARG
3640
;;

0 commit comments

Comments
 (0)