2017-11-07 10:36:56 +08:00
|
|
|
#!/bin/bash
|
|
|
|
get_busybox(){
|
|
|
|
case $(go env GOARCH) in
|
|
|
|
arm64)
|
2019-07-08 10:08:30 +08:00
|
|
|
echo 'https://github.com/docker-library/busybox/raw/dist-arm64v8/glibc/busybox.tar.xz'
|
2017-11-07 10:36:56 +08:00
|
|
|
;;
|
|
|
|
*)
|
2019-07-08 10:08:30 +08:00
|
|
|
echo 'https://github.com/docker-library/busybox/raw/dist-amd64/glibc/busybox.tar.xz'
|
2017-11-07 10:36:56 +08:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
}
|
|
|
|
|
|
|
|
get_hello(){
|
|
|
|
case $(go env GOARCH) in
|
|
|
|
arm64)
|
|
|
|
echo 'hello-world-aarch64.tar'
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
echo 'hello-world.tar'
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
}
|