Skip to content

Commit

Permalink
Ignore archive name
Browse files Browse the repository at this point in the history
Strip off the first part, so we can ignore the
upstream folder name.

Signed-off-by: Jonathan Schwender <[email protected]>
  • Loading branch information
jschwe committed Oct 6, 2024
1 parent 7c696b1 commit 6670f25
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions install_ohos_sdk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6670f25

Please sign in to comment.