28 lines
444 B
Bash
Executable File
28 lines
444 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
mode=${1:-unix}
|
|
case $(arch) in
|
|
x86_64|amd64)
|
|
case $mode in
|
|
unix)
|
|
echo "x86_64";;
|
|
docker|ha)
|
|
echo "amd64";;
|
|
qemu)
|
|
echo "x86-64";;
|
|
esac
|
|
;;
|
|
aarch64|arm64)
|
|
case $mode in
|
|
unix|ha)
|
|
echo "aarch64";;
|
|
docker)
|
|
echo "arm64";;
|
|
qemu)
|
|
echo "arm-64";;
|
|
esac
|
|
;;
|
|
esac
|