15 lines
291 B
Plaintext
15 lines
291 B
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
get_arch () {
|
||
|
local arch="$(uname -m)"
|
||
|
case "$arch" in
|
||
|
x86_64) arch='amd64' ;;
|
||
|
armhf) arch='armv6' ;;
|
||
|
armv7) arch='armv7' ;;
|
||
|
aarch64) arch='arm64' ;;
|
||
|
ppc64el|ppc64le) arch='ppc64le' ;;
|
||
|
s390x) arch='s390x';;
|
||
|
*) return 1 ;;\
|
||
|
esac;
|
||
|
echo $arch
|
||
|
}
|