diff --git a/psalm-baseline.xml b/psalm-baseline.xml
index 29626889..03d295f7 100644
--- a/psalm-baseline.xml
+++ b/psalm-baseline.xml
@@ -42,12 +42,12 @@
- shell_exec($parserDir->getPathname() . '/parse.sh ' . implode(' ', $args))
+ shell_exec('sh ' . $parserDir->getPathname() . '/parse.sh ' . implode(' ', $args))
- shell_exec($testData['path'] . '/build.sh')
+ shell_exec('sh ' . $testData['path'] . '/build.sh')
diff --git a/src/Command/Helper/Parsers.php b/src/Command/Helper/Parsers.php
index 6d06453d..a7d11f09 100644
--- a/src/Command/Helper/Parsers.php
+++ b/src/Command/Helper/Parsers.php
@@ -64,7 +64,7 @@ public function getParsers(InputInterface $input, OutputInterface $output, bool
$args[] = '--benchmark';
}
- $result = shell_exec($parserDir->getPathname() . '/parse.sh ' . implode(' ', $args));
+ $result = shell_exec('sh ' . $parserDir->getPathname() . '/parse.sh ' . implode(' ', $args));
if ($result !== null) {
$result = trim($result);
diff --git a/src/Command/Test.php b/src/Command/Test.php
index 5994999b..144430e5 100644
--- a/src/Command/Test.php
+++ b/src/Command/Test.php
@@ -123,7 +123,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
$output->write('Generating data for the ' . $testName . ' test suite... ');
$this->results[$testName] = [];
- $testOutput = trim((string) shell_exec($testData['path'] . '/build.sh'));
+ $testOutput = trim((string) shell_exec('sh ' . $testData['path'] . '/build.sh'));
file_put_contents($expectedDir . '/' . $testName . '.json', $testOutput);