Permalink
Browse files
In script or batchmode - bail out of mothur
- Loading branch information...
Showing
with
4 additions
and
2 deletions.
-
+4
−2
source/engine.cpp
|
|
@@ -257,7 +257,8 @@ bool BatchEngine::getInput(){ |
|
|
|
|
|
//if we aborted command
|
|
|
if (quitCommandCalled == 2) { mout->mothurOut("[ERROR]: did not complete " + commandName + ".\n"); }
|
|
|
-
|
|
|
+
|
|
|
+ if (mout->control_pressed) { break; }
|
|
|
mout->control_pressed = 0;
|
|
|
mout->executing = false;
|
|
|
|
|
|
@@ -391,7 +392,8 @@ bool ScriptEngine::getInput(){ |
|
|
|
|
|
//if we aborted command
|
|
|
if (quitCommandCalled == 2) { mout->mothurOut("[ERROR]: did not complete " + commandName + ".\n"); }
|
|
|
-
|
|
|
+
|
|
|
+ if (mout->control_pressed) { break; }
|
|
|
mout->control_pressed = 0;
|
|
|
mout->executing = false;
|
|
|
|
|
|
|
0 comments on commit
6f2cf2e