From 67bb2466a377df408cc101c11750fe4cc2faf561 Mon Sep 17 00:00:00 2001
From: Nikolaos Kakouros <nkak@kth.se>
Date: Wed, 19 May 2021 15:22:52 +0200
Subject: [PATCH] Fixes setting stdout/stderr

---
 headstart-core.bash | 1 +
 lib/io              | 2 --
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/headstart-core.bash b/headstart-core.bash
index 62ace80..5d7c2ef 100644
--- a/headstart-core.bash
+++ b/headstart-core.bash
@@ -139,6 +139,7 @@ function headstart() {
 
   . "$_GO_USE_MODULES" 'system'
 
+  set_standard_outputs
   set_trace "$debug"
   set_debug_levels "$verbosity"
   unset verbosity
diff --git a/lib/io b/lib/io
index 4442e6e..95cc5fa 100755
--- a/lib/io
+++ b/lib/io
@@ -168,5 +168,3 @@ function color_stderr() {
   @required [string] command
   "$@" 2> >(while read line; do echo -e "\e[01;31merror: $line\e[0m" >&2; done)
 }
-
-set_standard_outputs
-- 
GitLab