mirror of
https://github.com/YunoHost-Apps/prowlarr_ynh.git
synced 2024-09-03 20:16:07 +02:00
Update _common.sh
This commit is contained in:
parent
f5bc0d1f3a
commit
1edb1eb33b
1 changed files with 0 additions and 19 deletions
|
@ -6,29 +6,10 @@
|
|||
|
||||
version="0.8.1.2135"
|
||||
|
||||
# Supported architectures
|
||||
supported_architectures=("arm" "arm64" "x64")
|
||||
|
||||
# dependencies used by the app
|
||||
#REMOVEME? pkg_dependencies="curl mediainfo sqlite3"
|
||||
|
||||
#=================================================
|
||||
# PERSONAL HELPERS
|
||||
#=================================================
|
||||
|
||||
get_architecture() {
|
||||
architecture=$(dpkg --print-architecture)
|
||||
if [ $architecture = "amd64" ]; then
|
||||
architecture="x64"
|
||||
elif [[ $architecture = arm* ]] && [[ $(getconf LONG_BIT) = 32 ]]; then
|
||||
architecture="arm"
|
||||
elif [[ $architecture = arm* ]] && [[ $(getconf LONG_BIT) = 64 ]]; then
|
||||
architecture="arm64"
|
||||
elif [[ $(echo ${supported_architectures[@]} | grep -ow "$architecture" | wc -w) = 0 ]]; then
|
||||
ynh_die --message="Unsupported architecture $architecture"
|
||||
fi
|
||||
}
|
||||
|
||||
#=================================================
|
||||
# EXPERIMENTAL HELPERS
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue