changeset 58639 | 1df53737c59b |
parent 31310 | b5365a9db718 |
--- a/lib/scripts/timestart.bash Thu Oct 09 11:00:15 2014 +0200 +++ b/lib/scripts/timestart.bash Thu Oct 09 11:15:03 2014 +0200 @@ -8,7 +8,7 @@ TIMES_RESULT="" function get_times () { - local TMP="/tmp/get_times$$" + local TMP="${TMPDIR:-/tmp}/get_times$$" times > "$TMP" # No pipe here! TIMES_RESULT="$SECONDS $(echo $(cat "$TMP") | perl -pe 's,\d+m\d+\.\d+s \d+m\d+\.\d+s (\d+)m(\d+)\.\d+s +(\d+)m(\d+)\.\d+s, $1 * 60 + $2 + $3 * 60 + $4,e')" rm -f "$TMP"