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

fix arch detection

This commit is contained in:
OniriCorpe 2024-06-19 01:20:12 +02:00
parent c8cebe05ec
commit d81f8ac683

View file

@ -69,7 +69,9 @@ ynh_script_progression --message="Setting up source files..." --weight=1
# compare if the system arch is different from the binary arch # compare if the system arch is different from the binary arch
# if so, download the correct binary # if so, download the correct binary
if [ "$YNH_ARCH" != "$(file "$install_dir"/gotosocial | cut -d ',' -f 2 | tr -d ' ')" ] arch="$YNH_ARCH"
if [ "$arch" == "amd64" ]; then arch="x86-64"; fi
if [ "$arch" != "$(file "$install_dir"/gotosocial | cut -d ',' -f 2 | tr -d ' ')" ]
then then
ynh_script_progression --message="Migrating binary architecture..." ynh_script_progression --message="Migrating binary architecture..."