diff options
-rw-r--r-- | source/app.d | 4 | ||||
-rw-r--r-- | source/conda.d | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/source/app.d b/source/app.d index 3ae9f54..eb7938f 100644 --- a/source/app.d +++ b/source/app.d @@ -18,6 +18,10 @@ int main(string[] args) { string mergefile; string base_spec; + // disable buffering + stdout.setvbuf(0, _IONBF); + stderr.setvbuf(0, _IONBF); + try { auto optargs = getopt( args, diff --git a/source/conda.d b/source/conda.d index 1bd6581..2f447bd 100644 --- a/source/conda.d +++ b/source/conda.d @@ -241,9 +241,9 @@ class Conda { int sh(string command) { writeln("Running: " ~ command); - auto proc = executeShell(command, env=this.env); - writeln(proc.output); - return proc.status; + auto proc = spawnShell(command, env=this.env); + scope(exit) wait(proc); + return wait(proc); } auto sh_block(string command) { |