home
·
contact
·
privacy
projects
/
plomrogue
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removed mention of scoring from README.
[plomrogue]
/
roguelike
diff --git
a/roguelike
b/roguelike
index 2143f05623a0c98136634c7475aaa5c565d7a707..ae3fd75d9d69d09130321b31fb4f1026bb8f62fc 100755
(executable)
--- a/
roguelike
+++ b/
roguelike
@@
-1,13
+1,10
@@
#!/bin/sh
#!/bin/sh
-# This is only to ensure I write no unintentional bashisms.
-set -o posix
-
# Abort the script on error.
set -e
# Use the shell script's arguments to the server's arguments.
# Abort the script on error.
set -e
# Use the shell script's arguments to the server's arguments.
-./roguelike-server
$@
&
+./roguelike-server
"$@"
&
# Give server some time to start up and exit on error.
sleep 0.01
# Give server some time to start up and exit on error.
sleep 0.01
@@
-19,12
+16,17
@@
kill -0 $! 2> /dev/null
# Give server some time (max. 10 seconds) to generate its out file.
i=0
# Give server some time (max. 10 seconds) to generate its out file.
i=0
-while [ ! -e server/out ] && [ $i -le 1000
0
]
+while [ ! -e server/out ] && [ $i -le 1000 ]
do
sleep 0.01
i=`expr $i + 1`
done
do
sleep 0.01
i=`expr $i + 1`
done
-kill -0 $! 2> /dev/null
+if [ ! -e server/out ]
+then
+ echo "Server failed generating outfile within given time limit."
+ false
+fi
# Only start the interface when everything else went well.
# Only start the interface when everything else went well.
+kill -0 $! 2> /dev/null
./roguelike-client
./roguelike-client