diff --git a/scripts/build-behat-plugin.js b/scripts/build-behat-plugin.js index 04daa3e94..52ec0d259 100755 --- a/scripts/build-behat-plugin.js +++ b/scripts/build-behat-plugin.js @@ -21,7 +21,9 @@ const { mkdirSync, copySync } = require('fs-extra'); const { resolve, extname, dirname, basename, relative } = require('path'); async function main() { - const pluginPath = process.argv[2] || guessPluginPath() || fail('Folder argument missing!'); + const pluginPath = process.argv[2] + || guessPluginPath() + || fail('Folder argument missing! (you can also set the MOODLE_APP_BEHAT_PLUGIN_PATH env variable)'); const excludeFeatures = process.argv.some(arg => arg === '--exclude-features'); const exclusions = excludeFeatures ? [