Skip to content

Commit de068a4

Browse files
committed
[BUGFIX] 🐛 Return error exit code for error
Error condition returned success code instead of an error.
1 parent f3ff46f commit de068a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/RoboFile.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ public function create(array $options = [
193193
$this->say('Create patch ' . $patchName);
194194
if (is_dir($patchDirectory)) {
195195
$this->io()->error('Patch directory »' . $patchDirectory . '« already exists');
196-
return 0;
196+
return 1;
197197
}
198198

199199
$this->taskCopyDir([__DIR__ . '/../patches/template/' => $patchDirectory])

0 commit comments

Comments
 (0)