Ver Fonte

mqltest

wecisecode há 2 dias atrás
pai
commit
9170ff85de
1 ficheiros alterados com 8 adições e 2 exclusões
  1. 8 2
      odbctest/mql/mqltest.sh

+ 8 - 2
odbctest/mql/mqltest.sh

@@ -62,5 +62,11 @@ fi
 if [[ -e ${logfile} ]]; then
     mv -f ${logfile} ${lastlogfile}
 fi
-./mql "$@" 2>&1 | tee ${logfile}
-exit $?
+
+runmql() {
+    ./mql "$@" 2>&1
+    ret=$?
+    return $ret
+}
+runmql "$@" | tee ${logfile}
+exit $ret