Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ysulsky committed May 14, 2012
1 parent 2399281 commit 345944c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build-and-install
Expand Up @@ -58,9 +58,11 @@ function maybe_sudo {

function maybe_verbose {
if $verbose; then "$@"; else
local ret=0
local output=''
output=$("$@" 2>&1)
if [[ $? -ne 0 ]]; then
ret=$?
if [[ $ret -ne 0 ]]; then
echo "$output"
return $ret
fi
Expand Down

0 comments on commit 345944c

Please sign in to comment.