Sfoglia il codice sorgente

Merge branch 'master' of https://git.wecise.com/libf/odbtools

lizg 1 settimana fa
parent
commit
dce45e7355
1 ha cambiato i file con 3 aggiunte e 4 eliminazioni
  1. 3 4
      odbctest/mql/ootest.sh

+ 3 - 4
odbctest/mql/ootest.sh

@@ -17,8 +17,6 @@ parseargs() {
     while [[ "$*" != "" ]]; do
         if [[ "$1" == "init=no" ]]; then
             noinit=1
-        elif [[ "$1" == "bgmode" ]]; then
-            bgmode=1
         fi
         shift
     done
@@ -32,9 +30,10 @@ else
     logfile="test.log"
 fi
 
-if [[ "$bgmode" != "1" ]]; then
+if [[ "$bgmode" == "" ]]; then
     echo mql test running in background mode
-    nohup "$0" bgmode "$@" 2>&1 >/dev/null &
+    export bgmode=1
+    nohup "$0" "$@" 2>&1 >/dev/null &
     tail -F $logfile
     exit 0
 fi