From e901f5185b1226d522e0fff155a82bfc9161ed52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Bonhomme?= Date: Thu, 14 Nov 2019 08:08:49 +0100 Subject: [PATCH] updated install script --- scripts/update-all.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/scripts/update-all.sh b/scripts/update-all.sh index 110f5f0..1c61e47 100755 --- a/scripts/update-all.sh +++ b/scripts/update-all.sh @@ -54,7 +54,6 @@ fi composer install -o -currentPath=`pwd` pathCore="module/Monarc/Core" pathFO="module/Monarc/FrontOffice" @@ -73,6 +72,17 @@ if [[ $bypass -eq 0 ]]; then migrate_module $pathFO fi +if [[ -d node_modules && -d node_modules/ng_anr ]]; then + if [[ -d node_modules/ng_anr/.git ]]; then + pull_if_exists node_modules/ng_client + pull_if_exists node_modules/ng_anr + else + npm update + fi +else + npm install +fi + cd node_modules/ng_client npm install cd ../..