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