We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c40561 commit 755a8ebCopy full SHA for 755a8eb
build/root/install.sh
@@ -15,6 +15,22 @@ unzip /tmp/scripts-master.zip -d /tmp
15
# move shell scripts to /root
16
mv /tmp/scripts-master/shell/arch/docker/*.sh /usr/local/bin/
17
18
+# detect image arch
19
+####
20
+
21
+OS_ARCH=$(cat /etc/os-release | grep -P -o -m 1 "(?=^ID\=).*" | grep -P -o -m 1 "[a-z]+$")
22
+if [[ ! -z "${OS_ARCH}" ]]; then
23
+ if [[ "${OS_ARCH}" == "arch" ]]; then
24
+ OS_ARCH="x86-64"
25
+ else
26
+ OS_ARCH="aarch64"
27
+ fi
28
+ echo "[info] OS_ARCH defined as '${OS_ARCH}'"
29
+else
30
+ echo "[warn] Unable to identify OS_ARCH, defaulting to 'x86-64'"
31
32
+fi
33
34
# pacman packages
35
####
36
0 commit comments