From 4b8b7f90b25a67cd370052f111d6d799ec5fd25d Mon Sep 17 00:00:00 2001 From: Krakinou Date: Sun, 7 May 2023 15:35:59 +0200 Subject: [PATCH] move exec file name to common --- scripts/_common.sh | 7 ++++++- scripts/install | 7 ------- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 69c72c9..2d75279 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -3,7 +3,12 @@ #================================================= # COMMON VARIABLES #================================================= - +if [[ "$YNH_ARCH" == "armhf" ]] || [[ "$YNH_ARCH" == "arm64" ]] +then + file_exec="zwave-js-ui" +else + file_exec="zwave-js-ui-linux" +fi #================================================= # PERSONAL HELPERS #================================================= diff --git a/scripts/install b/scripts/install index ac957fd..b54bb16 100755 --- a/scripts/install +++ b/scripts/install @@ -9,13 +9,6 @@ source _common.sh source /usr/share/yunohost/helpers - -if [[ "$YNH_ARCH" == "armhf" ]] || [[ "$YNH_ARCH" == "arm64" ]] -then - file_exec="zwave-js-ui" -else - file_exec="zwave-js-ui-linux" -fi #================================================= # ADD SWAP IF NEEDED #=================================================