Source

ocaml-core / build-and-install

Diff from to

build-and-install

 
 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