diff --git a/base/DatabaseInstaller.php b/base/DatabaseInstaller.php index c992d69..10b6c4d 100644 --- a/base/DatabaseInstaller.php +++ b/base/DatabaseInstaller.php @@ -61,8 +61,8 @@ public function installDatabase(): bool { $cat = 'cat'; if ($this->options->dumpIsCompressed) { - $cat = trim(shell_exec('which gzcat')); - if ($cat === null) { + $cat = trim(shell_exec('which gzcat 2>/dev/null')); + if (!$cat) { $cat = 'zcat'; } }