home · contact · privacy
7DRL: Some population balancing.
[plomrogue] / start_server_client_union.sh
index ad05038c54ff3d3ad4908315260d213d3f1b0181..c56bf06cfa370b21dfde7024d5bcab4922151ced 100755 (executable)
@@ -11,7 +11,7 @@ fi
 
 # Abort if no proper Python version installed.
 test=`command -v python3 | wc -l`
-if [ 1 != $test ]
+if [ 1 -gt $test ]
 then
     echo "FAILURE:"
     echo "No python3 installed, but it's needed!"
@@ -32,7 +32,7 @@ fi
 
 # Use shell script's arguments for server and pipe server output to log file.
 # This script's wrapper script will read it out on exit.
-./roguelike-server "$@" > log 2>&1 &
+python3 ./roguelike-server "$@" > log 2>&1 &
 
 # Give server some time to start up and exit on error.
 sleep 0.01