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:
parent
bb7677c39e
commit
661e5d5c11
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue