X-Git-Url: https://jxself.org/git/?p=super-star-trek.git;a=blobdiff_plain;f=replay;h=a5a93517f51bf66caa1666e0bea23841d728ef36;hp=9e5c196eb1b45217bfae67dbe3bc013ac7984f99;hb=cc2a48e83469d5a9cfd432862ccb230f357bee16;hpb=5d386eeefb0288ed4037555ae41cd423f4a8d3dc diff --git a/replay b/replay index 9e5c196..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 /usr/tmp/sst-input.log replay.log + mv $TMP/sst-input.log replay.log fi python sst.py -t -r replay.log