projects
/
super-star-trek.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d9bc86a
)
Use TMPDIR as we should.
author
Eric S. Raymond
<esr@thyrsus.com>
Wed, 22 Feb 2012 01:40:32 +0000
(20:40 -0500)
committer
Eric S. Raymond
<esr@thyrsus.com>
Wed, 22 Feb 2012 01:40:32 +0000
(20:40 -0500)
replay
patch
|
blob
|
history
diff --git
a/replay
b/replay
index cb90dc589c026e02995f40d8d8163d19f61d1165..a5a93517f51bf66caa1666e0bea23841d728ef36 100755
(executable)
--- 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` <
/tmp
/sst-input.log >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