From 00038ad55cddd79127f20beef969609a8bc5ea23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Tue, 3 Oct 2023 14:20:12 +0200 Subject: [PATCH] Use major nodejs version , use pushd/popd instead of subshell --- scripts/_common.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 1f2e3b5..8511675 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -4,22 +4,21 @@ # COMMON VARIABLES #================================================= -nodejs_version="14.19.3" +nodejs_version="14" #================================================= # PERSONAL HELPERS #================================================= _digiscreen_build() { - ( - cd "$install_dir/sources" + pushd "$install_dir/sources" echo "VUE_APP_PIXABAY_API_KEY=$pixabay" >> .env echo "VUE_APP_GOOGLE_API_KEY=$googleYoutube" >> .env ynh_use_nodejs ynh_npm install ynh_npm run build - ) + popd } #=================================================