summaryrefslogtreecommitdiff
path: root/getTarget.sh
blob: 3530ee1a0f85b4a9371b4c42f4db0c83faa4e5d4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

machine="$(uname -m)"

if [ "${machine}" == "x64" ] || [ "${machine}" == "x86_64" ]
then
	printf "Amd64"
elif [ "${machine}" == "arm" ]
then
	printf "Arm"
elif [ "${machine}" == "aarch64" ] || [ "${machine}" == "aarch64_be" ] || [ "${machine}" == "arm64" ] || [ "${machine}" == "armv8b" ] || [ "${machine}" == "armv8l" ]
then
	printf "Arm64"
elif [ "${machine}" == "i386" ] || [ "${machine}" == "i686" ] || [ "${machine}" == "x86" ]
then
	printf "Ia32"
else
	printf "Any"
fi