Permalink
Browse files

Makes install-byond.sh more robust.

  • Loading branch information...
PsiOmegaDelta committed Jan 28, 2016
1 parent 94a439f commit d6c1aa5f28ed0732974b3169d9237f69ece59608
Showing with 4 additions and 4 deletions.
  1. +1 −2 .travis.yml
  2. +3 −2 install-byond.sh
@@ -1,5 +1,4 @@
#pretending we're C because otherwise ruby will initialize, even with "language: dm".
language: c
language: generic
sudo: false
env:
@@ -1,14 +1,15 @@
#!/bin/sh
set -e
if [ -d "$HOME/BYOND-${BYOND_MAJOR}.${BYOND_MINOR}/byond/bin" ];
if [ -f "$HOME/BYOND-${BYOND_MAJOR}.${BYOND_MINOR}/byond/bin/DreamMaker" ];
then
echo "Using cached directory."
else
echo "Setting up BYOND."
mkdir -p "$HOME/BYOND-${BYOND_MAJOR}.${BYOND_MINOR}"
cd "$HOME/BYOND-${BYOND_MAJOR}.${BYOND_MINOR}"
echo "Installing DreamMaker to $PWD"
curl "http://www.byond.com/download/build/${BYOND_MAJOR}/${BYOND_MAJOR}.${BYOND_MINOR}_byond_linux.zip" -o byond.zip
unzip byond.zip
unzip -o byond.zip
cd byond
make here
fi

0 comments on commit d6c1aa5

Please sign in to comment.