Skip to content

Instantly share code, notes, and snippets.

@rubenwardy
Created December 2, 2015 02:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rubenwardy/a0ca2abd7a25d910f92e to your computer and use it in GitHub Desktop.
Save rubenwardy/a0ca2abd7a25d910f92e to your computer and use it in GitHub Desktop.
#!/bin/bash
tty -s; if [ $? -ne 0 ]; then exo-open --launch TerminalEmulator $0; exit; fi
ssh XXXX@XXXX.rubenwardy.com <<'ENDSSH'
echo "$ cd .minetest/games/capturetheflag"
cd .minetest/capturetheflag
echo "$ git pull origin master"
git pull origin master
echo "$ git submodule update mods/ctf_pvp_engine"
git submodule update mods/ctf_pvp_engine
echo "$ cd mods/ctf_pvp_engine"
cd mods/ctf_pvp_engine
echo "$ git pull origin master"
git pull origin master
echo "$ cd ../../"
cd ../../
echo "$ ./build.sh ../games/capturetheflag"
./build.sh ../games/capturetheflag
ENDSSH
echo "Press [Enter] key to exit..."
read
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment