Skip to content
This repository has been archived by the owner on Jan 22, 2020. It is now read-only.

Commit

Permalink
Makes install-byond.sh more robust.
Browse files Browse the repository at this point in the history
  • Loading branch information
PsiOmegaDelta committed Jan 28, 2016
1 parent 94a439f commit d6c1aa5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
@@ -1,5 +1,4 @@
#pretending we're C because otherwise ruby will initialize, even with "language: dm".
language: c
language: generic
sudo: false

env:
Expand Down
5 changes: 3 additions & 2 deletions install-byond.sh
@@ -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.