diff options
| author | Nicolas Despres | 2012-03-03 19:02:10 +0100 |
|---|---|---|
| committer | Jack Nagel | 2012-03-03 14:25:45 -0600 |
| commit | 6898eadcc570cc7842efe5c377bda591d867db89 (patch) | |
| tree | 4d37c9f761269fab1d69ee5d76b3ad67db053a79 /Library | |
| parent | 28d6a0f4de981a116bbdf7dc73fad30f93609d9d (diff) | |
| download | brew-6898eadcc570cc7842efe5c377bda591d867db89.tar.bz2 | |
brew-man: only exit 1 when an error occurs
Because of "set -e" in non verbose mode brew man had an exit status
equals to 1 whereas there was no error. The reason was that the "test"
command failed. This patch fix this.
Closes Homebrew/homebrew#10664.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
| -rwxr-xr-x | Library/Contributions/examples/brew-man | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Contributions/examples/brew-man b/Library/Contributions/examples/brew-man index a017d9206..8afe2029d 100755 --- a/Library/Contributions/examples/brew-man +++ b/Library/Contributions/examples/brew-man @@ -45,7 +45,7 @@ do ronn --roff --pipe --organization='Homebrew' --manual='brew' $i > $target_file done -test "$1" = '--verbose' || \ -test "$1" = '-v' && { +if test "$1" = '--verbose' || test "$1" = '-v' +then man brew -} +fi |
