Skip to content

Commit 0e0ba36

Browse files
committed
add: ie release version
1 parent ccb1ec6 commit 0e0ba36

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

scripts/install_from_release.sh

+11-6
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,29 @@
11
# Script to install scenarios file. Pass in language code parameter for a particular language, such as it-it for Italian.
22
set -e
33

4-
# Define the language parameter
4+
# TODO: make parameters mandatory
55
LANG="$1"
6-
SCENARIOS=""
6+
RELEASE="$2"
7+
8+
# If no release is specified, download the latest release
9+
if [ "$RELEASE" == "" ]; then
10+
RELEASE="latest"
11+
fi
712

813
# Map the language parameter to the corresponding scenarios file
914
# If no parameter, download the scenarios from IE
1015
if [ "$LANG" = "" ]; then
11-
SCENARIOS='https://github.com/Azure/InnovationEngine/releases/download/latest/scenarios.zip'
16+
SCENARIOS="https://github.com/Azure/InnovationEngine/releases/download/$RELEASE/scenarios.zip"
1217
# Otherwise, download the scenarios from Microsoft Docs in the appropriate langauge
1318
elif [ "$LANG" = "en-us" ]; then
1419
SCENARIOS='https://github.com/MicrosoftDocs/executable-docs/releases/download/v1.0.1/scenarios.zip'
1520
else
1621
SCENARIOS="https://github.com/MicrosoftDocs/executable-docs/releases/download/v1.0.1/$LANG-scenarios.zip"
1722
fi
1823

19-
# Download the binary from the latest
20-
echo "Installing IE & scenarios from the latest release..."
21-
wget -q -O ie https://github.com/Azure/InnovationEngine/releases/download/latest/ie > /dev/null
24+
# Download the binary
25+
echo "Installing IE & scenarios from the $RELEASE release..."
26+
wget -q -O ie https://github.com/Azure/InnovationEngine/releases/download/$RELEASE/ie > /dev/null
2227
wget -q -O scenarios.zip "$SCENARIOS" > /dev/null
2328

2429
# Setup permissions & move to the local bin

0 commit comments

Comments
 (0)