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

Merge pull request #4 from YunoHost-Apps/testing

test existency of $HOME var
This commit is contained in:
oiseauroch 2021-04-21 06:46:12 +00:00 committed by GitHub
commit 876dae80fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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