Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Datree
Commits
def4c5a6
Unverified
Commit
def4c5a6
authored
3 years ago
by
shmuelsa
Committed by
GitHub
3 years ago
Browse files
Options
Download
Email Patches
Plain Diff
fix: add darwin case with os architecture point to x86_64 (#371)
parent
23e1e24c
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
install.sh
+5
-1
install.sh
with
5 additions
and
1 deletion
+5
-1
install.sh
+
5
-
1
View file @
def4c5a6
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help