From 389d9da7b3e31d8ef28db7384671f1f1de615e1a Mon Sep 17 00:00:00 2001 From: OniriCorpe Date: Mon, 23 Oct 2023 16:54:43 +0200 Subject: [PATCH] fix grep --- scripts/_common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index ce2404a..18ae128 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 uname -m | grep -q "[arm64,aarch64]" ; then + if uname -m | grep -q -i -E "arm64|aarch64" ; then architecture="arm64" elif uname -m | grep -q "64" ; then architecture="x86-64"