From 487a5856f1f5715fcd7a9ecd1ab9bc4db4ed90cc Mon Sep 17 00:00:00 2001 From: OniriCorpe Date: Fri, 13 Oct 2023 06:58:12 +0200 Subject: [PATCH] small refactor --- scripts/_common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 4452969..76f3cfc 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -15,7 +15,7 @@ pkg_dependencies="postgresql postgresql-contrib" # ($YNH_ARCH returns armhf for both...) detect_arch(){ local architecture - if [ -n "$(uname -m | grep arm64)" ] || [ -n "$(uname -m | grep aarch64)" ]; then + if [ -n "$(uname -m | grep [arm64,aarch64]; then architecture="arm64" elif [ -n "$(uname -m | grep 64)" ]; then architecture="x86-64"