1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/petrolette_ynh.git synced 2024-09-03 19:56:26 +02:00

test existency of $HOME var

This commit is contained in:
Tobias Ollive 2021-04-20 08:55:38 +02:00
parent bb7677c39e
commit 661e5d5c11

View file

@ -96,11 +96,11 @@ ynh_script_progression --message="Installing application using node..."
pushd $final_path pushd $final_path
# use custom home value to avoid bower storing values in root and have right errors # 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) HOME=$(pwd)
ynh_use_nodejs ynh_use_nodejs
ynh_npm install ynh_npm install
HOME=$TMP_HOME [[ -v TMP_HOME ]] && HOME=$TMP_HOME || unset HOME
popd popd
#================================================= #=================================================