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:
parent
c8cebe05ec
commit
d81f8ac683
1 changed files with 3 additions and 1 deletions
|
@ -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..."
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue