diff --git a/lib/OperatingSystems/DefaultOs.php b/lib/OperatingSystems/DefaultOs.php index 1672dd7a..981c2293 100644 --- a/lib/OperatingSystems/DefaultOs.php +++ b/lib/OperatingSystems/DefaultOs.php @@ -246,7 +246,7 @@ protected function readContent(string $filename): string { protected function executeCommand(string $command): string { $output = @shell_exec(escapeshellcmd($command)); - if ($output === null || $output === '') { + if ($output === false || $output === null || $output === '') { throw new \RuntimeException('No output for command: "' . $command . '"'); } return $output;