Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Commit

Permalink
Merge pull request #52 from gdbentley/master
Browse files Browse the repository at this point in the history
Fixed check for gzcat (and made it quieter).
  • Loading branch information
fredemmott committed Sep 24, 2015
2 parents f92b77a + 8863018 commit 94a39f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base/DatabaseInstaller.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}
}
Expand Down

0 comments on commit 94a39f0

Please sign in to comment.