1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/gotosocial_ynh.git synced 2024-09-03 19:16:06 +02:00

small refactor

This commit is contained in:
OniriCorpe 2023-10-13 06:58:12 +02:00
parent 83430c1478
commit 487a5856f1

View file

@ -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"