From 6898eadcc570cc7842efe5c377bda591d867db89 Mon Sep 17 00:00:00 2001 From: Nicolas Despres Date: Sat, 3 Mar 2012 19:02:10 +0100 Subject: 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 --- Library/Contributions/examples/brew-man | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Library') 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 -- cgit v1.2.3