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 #=================================================