diff options
author | Dieter Plaetinck <dieter@plaetinck.be> | 2008-11-13 15:49:12 +0100 |
---|---|---|
committer | Dieter Plaetinck <dieter@plaetinck.be> | 2008-11-13 15:49:12 +0100 |
commit | 036d7cf2ef41b1b56fddfc10e1426351c498fa9c (patch) | |
tree | 1c9ab150a60dd4f1b0adf11d3e34d976d6b58167 /src | |
parent | 13ab709cb329c601253085de754a3bf1add82203 (diff) |
dont overwrite previous logfile, rather append
Diffstat (limited to 'src')
-rw-r--r-- | src/core/libs/lib-misc.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/libs/lib-misc.sh b/src/core/libs/lib-misc.sh index 238d9b6..f421af3 100644 --- a/src/core/libs/lib-misc.sh +++ b/src/core/libs/lib-misc.sh @@ -16,7 +16,8 @@ run_background () ( \ touch /home/arch/fifa/runtime/$1-running debug "run_background starting $1: $2 >>$3 2>&1" - echo "$1 progress ..." > $3; \ + [ -f $3 ] && echo -e "\n\n\n" >>$3 + echo "STARTING $1 . Executing $2 >>$3 2>&1" >> $3; \ echo >> $3; \ eval "$2" >>$3 2>&1 var_exit=${1}_exitcode |