aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorNicolas Despres2012-03-03 19:02:10 +0100
committerJack Nagel2012-03-03 14:25:45 -0600
commit6898eadcc570cc7842efe5c377bda591d867db89 (patch)
tree4d37c9f761269fab1d69ee5d76b3ad67db053a79 /Library
parent28d6a0f4de981a116bbdf7dc73fad30f93609d9d (diff)
downloadbrew-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-xLibrary/Contributions/examples/brew-man6
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