From 182f9042b85febb81565e52e8d6e7a96a44ff7d1 Mon Sep 17 00:00:00 2001 From: Juan Rocha Date: Wed, 19 Apr 2017 15:28:56 +0200 Subject: [PATCH] FIX: BO Extration translation script --- 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