From bbcdf840a5348ee7873e90a777d7e23991fbc343 Mon Sep 17 00:00:00 2001 From: OniriCorpe Date: Tue, 15 Mar 2022 22:53:56 +0100 Subject: [PATCH] adding comments for detect_arch() --- scripts/_common.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/_common.sh b/scripts/_common.sh index b07e6c5..d5c690b 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -11,6 +11,8 @@ pkg_dependencies="postgresql postgresql-contrib" # PERSONAL HELPERS #================================================= +# custom function to detect armv6 and armv7 +# ($YNH_ARCH returns armhf for both...) detect_arch(){ local architecture if [ -n "$(uname -m | grep arm64)" ] || [ -n "$(uname -m | grep aarch64)" ]; then