X-Git-Url: https://plomlompom.com/repos/berlin_corona.txt?a=blobdiff_plain;f=start_server_client_union.sh;h=ad05038c54ff3d3ad4908315260d213d3f1b0181;hb=31cb9882de0c7f057a4ae7c90b772d7dca99ee52;hp=6199e25e7cd37bf136e2a6b487f7c5b1ec1450f8;hpb=9a45da3c6ecdeccd30e07e18a93023cfb08cef39;p=plomrogue diff --git a/start_server_client_union.sh b/start_server_client_union.sh index 6199e25..ad05038 100755 --- a/start_server_client_union.sh +++ b/start_server_client_union.sh @@ -9,15 +9,24 @@ then rm log fi +# Abort if no proper Python version installed. +test=`command -v python3 | wc -l` +if [ 1 != $test ] +then + echo "FAILURE:" + echo "No python3 installed, but it's needed!" + exit 1 +fi + # Give helpful message to players that want to start without compiling first. -if [ ! -e ./roguelike-server ] +if [ ! -e ./roguelike-client ] then - echo 'No ./roguelike-server file found to execute. Try "make" first?' + echo 'No ./roguelike-client executable found. Try "./redo" first?' false fi -if [ ! -e ./roguelike-client ] +if [ ! -e ./libplomrogue.so ] then - echo 'No ./roguelike-client file found to execute. Try "make" first?' + echo 'No ./libplomrogue.so library found. Try "./redo" first?' false fi