Skip to content

Commit

Permalink
Fix verify return codes
Browse files Browse the repository at this point in the history
Return 0 on success and 1 on error.

Fixes box-project#116
  • Loading branch information
mbrodala committed Nov 1, 2015
1 parent 34259e6 commit 8b8f53d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/KevinGH/Box/Command/Verify.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
$output->writeln($signature['hash']);
}

return 1;
return 0;
}

$output->writeln('<error>The Phar failed verification.</error>');
Expand All @@ -118,6 +118,6 @@ protected function execute(InputInterface $input, OutputInterface $output)
throw $exception;
}

return 0;
return 1;
}
}

0 comments on commit 8b8f53d

Please sign in to comment.