Skip to content

Commit 9fa7906

Browse files
authored
Merge pull request #4527 from crazyserver/MOBILE-4842
MOBILE-4842 behat: Include public on guess plugin path
2 parents 29aab3a + ab046e5 commit 9fa7906

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scripts/build-behat-plugin.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,11 @@ function guessPluginPath() {
154154
}
155155

156156
if (process.env.MOODLE_DOCKER_WWWROOT) {
157-
return `${process.env.MOODLE_DOCKER_WWWROOT}/local/moodleappbehat`;
157+
if (existsSync(`${process.env.MOODLE_DOCKER_WWWROOT}/public`)) {
158+
return `${process.env.MOODLE_DOCKER_WWWROOT}/public/local/moodleappbehat`;
159+
} else {
160+
return `${process.env.MOODLE_DOCKER_WWWROOT}/local/moodleappbehat`;
161+
}
158162
}
159163

160164
return null;

0 commit comments

Comments
 (0)