wecisecode hai 2 días
pai
achega
9170ff85de
Modificáronse 1 ficheiros con 8 adicións e 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