/apps/aecu-scripts (AEM Cloud automatic execution with startup hook, since 6.0.0)
/conf/groovyconsole/scripts/aecu (AEM onprem manual and install hook execution, AEM Cloud manual execution)
/var/groovyconsole/scripts/aecu (deprecated)
but the code uses String.starthWith(String) to evaluate the paths of the scripts to be executed. This means that it also execute scripts in sibling paths as long as they start with aecu. e.g. /conf/groovyconsole/scripts/aecu-XXX.
Since this discrepancy seems to have existed for a very long time (version 1.x already had it). I suggest to update the documentation to better explain the behaviour.
The documentation says
but the code uses String.starthWith(String) to evaluate the paths of the scripts to be executed. This means that it also execute scripts in sibling paths as long as they start with aecu. e.g. /conf/groovyconsole/scripts/aecu-XXX.
Since this discrepancy seems to have existed for a very long time (version 1.x already had it). I suggest to update the documentation to better explain the behaviour.