Skip to content

Commit

Permalink
fix RunMdaScript.php now it works in bash not in shell
Browse files Browse the repository at this point in the history
  • Loading branch information
temaotl committed Dec 19, 2024
1 parent 96695e9 commit 3b606ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Jobs/RunMdaScript.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function handle(): void
foreach ($filterArray as $filter) {
$file = config('storageCfg.mdaConfigFolder').'/'.escapeshellarg($filter).'.xml';
$pipeline = 'main';
$command = 'sh '.escapeshellarg($realScriptPath).' '.$file.' '.$pipeline;
$command = 'bash '.escapeshellarg($realScriptPath).' '.$file.' '.$pipeline;
$output = shell_exec($command);

if ($output === false || str_contains($output, 'ERROR') || str_contains($output, 'WARN')) {
Expand Down

0 comments on commit 3b606ab

Please sign in to comment.