mirror of
https://github.com/anchore/syft.git
synced 2025-11-17 08:23:15 +01:00
Fix M1 install (#686)
* M1 install.sh script should use zip Signed-off-by: Alex Goodman <alex.goodman@anchore.com> * add arm64 binary extraction Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
This commit is contained in:
parent
ecbfbe6896
commit
3d8c16649d
@ -1,7 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
# Code generated by godownloader on 2020-08-10T20:55:46Z.
|
|
||||||
#
|
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
this=$1
|
this=$1
|
||||||
@ -67,6 +65,7 @@ execute() {
|
|||||||
}
|
}
|
||||||
get_binaries() {
|
get_binaries() {
|
||||||
case "$PLATFORM" in
|
case "$PLATFORM" in
|
||||||
|
darwin/arm64) BINARIES="syft" ;;
|
||||||
darwin/amd64) BINARIES="syft" ;;
|
darwin/amd64) BINARIES="syft" ;;
|
||||||
linux/amd64) BINARIES="syft" ;;
|
linux/amd64) BINARIES="syft" ;;
|
||||||
windows/amd64) BINARIES="syft" ;;
|
windows/amd64) BINARIES="syft" ;;
|
||||||
@ -97,6 +96,9 @@ adjust_format() {
|
|||||||
darwin) FORMAT=dmg ;;
|
darwin) FORMAT=dmg ;;
|
||||||
windows) FORMAT=zip ;;
|
windows) FORMAT=zip ;;
|
||||||
esac
|
esac
|
||||||
|
case "${PLATFORM}" in
|
||||||
|
darwin/arm64) FORMAT=zip ;;
|
||||||
|
esac
|
||||||
true
|
true
|
||||||
}
|
}
|
||||||
adjust_os() {
|
adjust_os() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user