From c8c5118b9879d452efc271df112bc2bdafe21096 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Fri, 7 Jun 2019 22:09:00 +0200 Subject: [PATCH] Fix warning about variable --- scripts/_common.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 4d8c8d0..48d9cfa 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -8,10 +8,11 @@ pgadmin_user="pgadmin" python_version="3.5" dependances="python3-pip build-essential python3-dev python3-venv postgresql uwsgi uwsgi-plugin-python3 expect libpq-dev" -[[ -e "../settings/manifest.json" ]] || [[ -e "../manifest.json" ]] && \ +if [[ -e "../settings/manifest.json" ]] || [[ -e "../manifest.json" ]]; then APP_VERSION=$(ynh_app_upstream_version) -app_main_version=$(echo $APP_VERSION | cut -d'-' -f1) -app_sub_version=$(echo $APP_VERSION | cut -d'-' -f2) + app_main_version=$(echo $APP_VERSION | cut -d'-' -f1) + app_sub_version=$(echo $APP_VERSION | cut -d'-' -f2) +fi #================================================= # DEFINE ALL COMMON FONCTIONS