wecisecode hace 2 días
padre
commit
9170ff85de
Se han modificado 1 ficheros con 8 adiciones y 2 borrados
  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