mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-10 09:54:52 +00:00
i wonder if chmod permissions are retained after resetting a branch.
This commit is contained in:
21
tools/travis/install_byond.sh
Normal file
21
tools/travis/install_byond.sh
Normal file
@@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
|
||||
source dependencies.sh
|
||||
|
||||
if [ -d "$HOME/BYOND/byond/bin" ] && grep -Fxq "${BYOND_MAJOR}.${BYOND_MINOR}" $HOME/BYOND/version.txt;
|
||||
then
|
||||
echo "Using cached directory."
|
||||
else
|
||||
echo "Setting up BYOND."
|
||||
rm -rf "$HOME/BYOND"
|
||||
mkdir -p "$HOME/BYOND"
|
||||
cd "$HOME/BYOND"
|
||||
curl "http://www.byond.com/download/build/${BYOND_MAJOR}/${BYOND_MAJOR}.${BYOND_MINOR}_byond_linux.zip" -o byond.zip
|
||||
unzip byond.zip
|
||||
rm byond.zip
|
||||
cd byond
|
||||
make here
|
||||
echo "$BYOND_MAJOR.$BYOND_MINOR" > "$HOME/BYOND/version.txt"
|
||||
cd ~/
|
||||
fi
|
||||
Reference in New Issue
Block a user