From 05572885ce077e9b83b0b8155dc9b40675ceb4df Mon Sep 17 00:00:00 2001 From: Guillaume Lesniak Date: Fri, 16 Dec 2016 17:17:56 +0100 Subject: [PATCH] ExtractTranslations: Use grunt from PATH or from node_modules, whichever is available --- scripts/extract_translations.sh | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/scripts/extract_translations.sh b/scripts/extract_translations.sh index 6ba7dfc..b3949f3 100755 --- a/scripts/extract_translations.sh +++ b/scripts/extract_translations.sh @@ -2,11 +2,21 @@ if [ -d node_modules/ng_backoffice ]; then pushd node_modules/ng_backoffice - node_modules/.bin/grunt extract_translations + + if [ -f node_modules/.bin/grunt ]; then + node_modules/.bin/grunt extract_translations + else + grunt extract_translations + fi fi if [ -d node_modules/ng_client ]; then pushd node_modules/ng_client - node_modules/.bin/grunt extract_translations + + if [ -f node_modules/.bin/grunt ]; then + node_modules/.bin/grunt extract_translations + else + grunt extract_translations + fi fi