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

Commit

Permalink
Safer check for gzcat.
Browse files Browse the repository at this point in the history
  • Loading branch information
gdbentley committed Sep 23, 2015
1 parent b1cad30 commit 8863018
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/DatabaseInstaller.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function installDatabase(): bool {
$cat = 'cat';
if ($this->options->dumpIsCompressed) {
$cat = trim(shell_exec('which gzcat 2>/dev/null'));
if ($cat === "") {
if (!$cat) {
$cat = 'zcat';
}
}
Expand Down

0 comments on commit 8863018

Please sign in to comment.