summaryrefslogtreecommitdiff
path: root/getTarget.sh
diff options
context:
space:
mode:
Diffstat (limited to 'getTarget.sh')
-rwxr-xr-xgetTarget.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/getTarget.sh b/getTarget.sh
new file mode 100755
index 0000000..3530ee1
--- /dev/null
+++ b/getTarget.sh
@@ -0,0 +1,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