From: Christian Heller Date: Wed, 5 Feb 2014 15:32:38 +0000 (+0100) Subject: Repaired buggy check for out file generation time in init shell script. X-Git-Tag: tce~842 X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/%7B%7Bdb.prefix%7D%7D/te%22st.html?a=commitdiff_plain;h=df1953b0cde02f3e5fd5f80a08d600f691efa59c;p=plomrogue Repaired buggy check for out file generation time in init shell script. --- diff --git a/roguelike b/roguelike index dadab3c..ec72ca9 100755 --- a/roguelike +++ b/roguelike @@ -16,12 +16,17 @@ kill -0 $! 2> /dev/null # Give server some time (max. 10 seconds) to generate its out file. i=0 -while [ ! -e server/out ] && [ $i -le 10000 ] +while [ ! -e server/out ] && [ $i -le 1000 ] 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. +kill -0 $! 2> /dev/null ./roguelike-client