We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98f6027 commit f2bc04cCopy full SHA for f2bc04c
install_ohos_sdk.sh
@@ -103,14 +103,12 @@ function download_and_extract_sdk() {
103
curl --fail -L -O "${DOWNLOAD_URL}.sha256"
104
fi
105
106
- VERSION_MAJOR=${INPUT_VERSION%%.*}
107
-
108
if [[ "${OS}" == "mac" ]]; then
109
echo "$(cat "${OS_FILENAME}".sha256) ${OS_FILENAME}" | shasum -a 256 --check --status
110
tar -xf "${OS_FILENAME}" --strip-components=3
111
else
112
echo "$(cat "${OS_FILENAME}".sha256) ${OS_FILENAME}" | sha256sum --check --status
113
- if (( VERSION_MAJOR >= 5 )); then
+ if [[ "${INPUT_VERSION}" == "5.0.0" || "${INPUT_VERSION}" == "5.0.1" ]]; then
114
tar -xf "${OS_FILENAME}"
115
116
tar -xf "${OS_FILENAME}" --strip-components=1
0 commit comments