From: Eric S. Raymond Date: Wed, 22 Feb 2012 01:40:32 +0000 (-0500) Subject: Use TMPDIR as we should. X-Git-Tag: 2.2~89 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=561ffe99a07b63c86dc715c0b378355167cff6de;p=super-star-trek.git Use TMPDIR as we should. --- 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