X-Git-Url: https://jxself.org/git/?p=super-star-trek.git;a=blobdiff_plain;f=replay;h=7fc0641555e615b4e145b4f90ef2a6abedff7b9e;hp=9e5c196eb1b45217bfae67dbe3bc013ac7984f99;hb=HEAD;hpb=5d386eeefb0288ed4037555ae41cd423f4a8d3dc diff --git a/replay b/replay index 9e5c196..7fc0641 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 +python3 sst -t -r replay.log