Skip to content

Commit

Permalink
Merge branch 'development' of github.com:Ortus-Solutions/testbox-cli …
Browse files Browse the repository at this point in the history
…into development
  • Loading branch information
lmajano committed Sep 9, 2024
2 parents c67720d + 2851fc7 commit db849ce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions commands/testbox/run.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -434,16 +434,16 @@ component {
*/
private function ensureTestBox( boolean testboxUseLocal = true ){
// Where it should go in the module installed locally
var testBoxPath = variables.moduleConfig.path & "/testbox";
var modulePath = variables.moduleConfig.path;
var testBoxPath = variables.moduleConfig.path & "/testbox";
var modulePath = variables.moduleConfig.path;
var serverDetails = variables.serverService.resolveServerDetails( {} );
var serverInfo = serverDetails.serverInfo;

// If using local, check if we have a local version first
if ( arguments.testboxUseLocal ) {
// Check if we have a local version
var localTestBoxPath = resolvePath( "testbox", serverInfo.webroot );
if( directoryExists( localTestBoxPath ) ){
if ( directoryExists( localTestBoxPath ) ) {
testBoxPath = localTestBoxPath;
}
}
Expand Down

0 comments on commit db849ce

Please sign in to comment.