From 661e5d5c1117b31ba4f41407063288c598907dca Mon Sep 17 00:00:00 2001 From: Tobias Ollive Date: Tue, 20 Apr 2021 08:55:38 +0200 Subject: [PATCH] test existency of $HOME var --- scripts/install | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index 541dd0d..15f2345 100644 --- a/scripts/install +++ b/scripts/install @@ -96,11 +96,11 @@ ynh_script_progression --message="Installing application using node..." pushd $final_path # use custom home value to avoid bower storing values in root and have right errors - TMP_HOME=$HOME + [[ -v HOME ]] && TMP_HOME=$HOME HOME=$(pwd) ynh_use_nodejs ynh_npm install - HOME=$TMP_HOME + [[ -v TMP_HOME ]] && HOME=$TMP_HOME || unset HOME popd #=================================================