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