Skip to content

Commit

Permalink
Fix command output
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronbushnell committed Jan 2, 2025
1 parent 27223b9 commit 0d160e4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/Data/Sandbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,16 +81,16 @@ public function mountRepository(): void

// Execute any post-mount commands if they exist
if (config('forge.post_mount_commands')) {
$cmds = str(config('forge.post_mount_commands'))
$commandString = str(config('forge.post_mount_commands'))
->explode(';')
->filter()
->map(fn ($command) => str($command)->trim()->value())
->toArray();
->join(' && ');

$this->forge->executeSiteCommand(
config('forge.server'),
$this->getSite()->id,
$cmds,
["command" => $commandString],
);
}
}
Expand Down

0 comments on commit 0d160e4

Please sign in to comment.