~ salmonella-environment-setup (master) 183b50c5b3febf885046f017a2f36e77e8a1e0d6


commit 183b50c5b3febf885046f017a2f36e77e8a1e0d6
Author:     Mario Domenech Goulart <mario@parenteses.org>
AuthorDate: Fri Apr 16 19:15:03 2021 +0200
Commit:     Mario Domenech Goulart <mario@parenteses.org>
CommitDate: Fri Apr 16 19:15:03 2021 +0200

    run-salmonella.sh: fix logging of hooks

diff --git a/run-salmonella.sh b/run-salmonella.sh
index 72c2125..cac9927 100755
--- a/run-salmonella.sh
+++ b/run-salmonella.sh
@@ -76,8 +76,8 @@ run_hooks() {
         if [ -d "$hook_dir" ]; then
             for hook in "${hook_dir}/"*; do
                 if [ -x "$hook" ]; then
-                    echo "=== Running hook $hook ==="
-                    "$hook" "$OS" "$ARCH" "$CHICKEN_4_PREFIX" "$CHICKEN_5_PREFIX" > "$hooks_logfile" 2>&1
+                    echo "=== Running hook $hook ===" >>"$hooks_logfile"
+                    "$hook" "$OS" "$ARCH" "$CHICKEN_4_PREFIX" "$CHICKEN_5_PREFIX" >>"$hooks_logfile" 2>&1
                 fi
             done
         fi
Trap