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

Commit

Permalink
Fixed check for gzcat (and made it quieter).
Browse files Browse the repository at this point in the history
  • Loading branch information
gdbentley committed Sep 23, 2015
1 parent f92b77a commit b1cad30
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 b1cad30

Please sign in to comment.