Pārlūkot izejas kodu

Fix failed grunt not found on bin/setup-grunt execution #569

Mark Shust 2 gadi atpakaļ
vecāks
revīzija
24f3605d3c
2 mainītis faili ar 4 papildinājumiem un 1 dzēšanām
  1. 1 1
      compose/bin/grunt
  2. 3 0
      compose/bin/setup-grunt

+ 1 - 1
compose/bin/grunt

@@ -1,2 +1,2 @@
 #!/bin/bash
-bin/cli ./node_modules/grunt/bin/grunt "$@"
+bin/cli npx grunt "$@"

+ 3 - 0
compose/bin/setup-grunt

@@ -1,4 +1,7 @@
 #!/bin/bash
+echo "Confirming n98-magerun2 is installed..."
+bin/n98-magerun2 > /dev/null 2>&1
+
 DEFAULT_THEME_ID="select value from core_config_data where path = 'design/theme/theme_id'"
 THEME_PATH="select theme_path from theme where theme_id in ($DEFAULT_THEME_ID);"
 VENDOR_THEME=$(bin/n98-magerun2 db:query "$THEME_PATH" | sed -n 2p | cut -d$'\r' -f1)