Skip to content

Commit a0579a0

Browse files
author
Felix Exner
committed
Select subfolder depending on version
1 parent ffe2f5f commit a0579a0

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/actions/build_urcap/entrypoint.sh

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,19 @@
22

33
set -e
44

5+
SDK_MAJOR=$(echo ${SDK_VERSION} | awk -F. '{print $1}')
6+
SDK_MINOR=$(echo ${SDK_VERSION} | awk -F. '{print $2}')
7+
SDK_BUILD=$(echo ${SDK_VERSION} | awk -F. '{print $3}')
8+
59
pushd ${HOME}
610
curl -o sdk-${SDK_VERSION}.zip https://s3-eu-west-1.amazonaws.com/urplus-developer-site/sdk/sdk-${SDK_VERSION}.zip
711
mkdir sdk
8-
unzip sdk-${SDK_VERSION}.zip -d sdk
9-
cd sdk
12+
unzip -q sdk-${SDK_VERSION}.zip -d sdk
13+
if [ "$SDK_MAJOR" -eq 1 ] && [ "$SDK_MINOR" -lt 10 ]; then
14+
cd sdk
15+
else
16+
cd sdk/URCap_SDK-${SDK_VERSION}
17+
fi
1018
./install.sh
1119

1220
popd

0 commit comments

Comments
 (0)