From 1edb1eb33ba81133081ea800e78f854789a48819 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Sat, 18 Nov 2023 18:19:00 +0100 Subject: [PATCH] Update _common.sh --- scripts/_common.sh | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 2a5ea2a..f6f8fb1 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -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 #=================================================