Unverified Commit def4c5a6 authored by shmuelsa's avatar shmuelsa Committed by GitHub
Browse files

fix: add darwin case with os architecture point to x86_64 (#371)

parent 23e1e24c
No related merge requests found
Showing with 5 additions and 1 deletion
+5 -1
......@@ -5,7 +5,10 @@ set -e
osName=$(uname -s)
osArchitecture=$(uname -m)
if [[ $osArchitecture == *'aarch'* || $osArchitecture == *'arm'* ]]; then
if [[ $osName == "Darwin" && $osArchitecture == 'arm64' ]]; then
osArchitecture='x86_64'
elif [[ $osArchitecture == *'aarch'* || $osArchitecture == *'arm'* ]]; then
osArchitecture='arm64'
fi
......@@ -13,6 +16,7 @@ DOWNLOAD_URL=$(curl --silent "https://api.github.com/repos/datreeio/datree/relea
DOWNLOAD_URL=${DOWNLOAD_URL//\"}
DOWNLOAD_URL=${DOWNLOAD_URL/browser_download_url: /}
OUTPUT_BASENAME=datree-latest
OUTPUT_BASENAME_WITH_POSTFIX=$OUTPUT_BASENAME.zip
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment