Skip to content

Commit 4fd9d2d

Browse files
author
epriestley
committed
Fix "bin/storage dump" with no "--output"
Ref T13004. (I distinctly remember testing this, but must have tweaked things afterward.)
1 parent 1ee7b3a commit 4fd9d2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/infrastructure/storage/management/workflow/PhabricatorStorageManagementDumpWorkflow.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ public function didExecute(PhutilArgumentParser $args) {
237237
$file = fopen($output_file, 'wb');
238238
}
239239

240-
if (!$file) {
240+
if (($output_file !== null) && !$file) {
241241
throw new Exception(
242242
pht(
243243
'Failed to open file "%s" for writing.',

0 commit comments

Comments
 (0)