diff --git a/install_ohos_sdk.sh b/install_ohos_sdk.sh index 78f5888..f872644 100755 --- a/install_ohos_sdk.sh +++ b/install_ohos_sdk.sh @@ -64,13 +64,12 @@ fi if [[ "${OS}" == "mac" ]]; then echo "$(cat "${OS_FILENAME}".sha256) ${OS_FILENAME}" | shasum -a 256 --check --status - tar -xf "${OS_FILENAME}" --strip-components=2 + tar -xf "${OS_FILENAME}" --strip-components=3 else echo "$(cat "${OS_FILENAME}".sha256) ${OS_FILENAME}" | sha256sum --check --status - tar -xf "${OS_FILENAME}" + tar -xf "${OS_FILENAME}" --strip-components=1 fi rm "${OS_FILENAME}" "${OS_FILENAME}.sha256" -cd ohos-sdk* echo "sdk-path=$PWD" >> "${GITHUB_OUTPUT}" if [[ "${OS}" == "linux" ]]; then