From 561ffe99a07b63c86dc715c0b378355167cff6de Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 21 Feb 2012 20:40:32 -0500 Subject: [PATCH] Use TMPDIR as we should. --- replay | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/replay b/replay index cb90dc5..a5a9351 100755 --- a/replay +++ b/replay @@ -5,10 +5,11 @@ # repeating this any number of times should produce identical games, # unless the code changes. # +TMP=${TMPDIR:-/tmp} if [ $1 ] then - head -n `expr $1 + 2` replay.log + head -n `expr $1 + 2` <$TMP/sst-input.log >replay.log else - mv /tmp/sst-input.log replay.log + mv $TMP/sst-input.log replay.log fi python sst.py -t -r replay.log -- 2.31.1