diff --git a/docker-setup.sh b/docker-setup.sh index 02792184..2d155891 100644 --- a/docker-setup.sh +++ b/docker-setup.sh @@ -8,18 +8,28 @@ export MMSOURCE_DEV='/dockerVolume/metamod-source' export CC=clang export CXX=clang++ +clear + echo -------------------------------------------------------------------------- echo Starting steam sniper compilator for metamod echo -apt-get update -apt-get install python3-setuptools -y -apt-get install clang -y -apt-get install python3 -y -apt-get install gcc -y - -cd "/dockerVolume/ambuild" -python3 setup.py install +if [ "$(which "ambuild")" != "" ]; +then + echo "AMBUILD installed" +else + echo "Installing ambuild" + + apt-get update + apt-get install python3-setuptools -y + apt-get install clang -y + apt-get install python3 -y + apt-get install gcc -y + + cd "/dockerVolume/ambuild" && python3 setup.py install + + echo "AMBUILD Installed" +fi cd "/dockerVolume/mm-cs2-scrim" mkdir build