Created
August 8, 2011 01:11
-
-
Save wayneeseguin/1131018 to your computer and use it in GitHub Desktop.
bash script to install bdsm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
if ! command -v git > /dev/null | |
then | |
echo "git is required in order to install the latest development BDSM version." | |
echo "Please install git ( http://git-scm.com/ ) and then try again." | |
fi | |
if (( UID == 0 )) | |
then | |
source_path="/usr/local/src" | |
else | |
source_path="$HOME/src" | |
fi | |
mkdir -p "${source_path}" | |
cd "${source_path}" | |
git clone git://github.com/wayneeseguin/bdsm.git bdsm-head | |
cd bdsm-head | |
./install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
if (( UID == 0 )) | |
then | |
source_path="/usr/local/src" | |
else | |
source_path="$HOME/src" | |
fi | |
mkdir -p "${source_path}" | |
cd "${source_path}" | |
version=$(curl -s https://bdsm.beginrescueend.com/releases/latest.txt) | |
curl -O https://bdsm.beginrescueend.com/releases/bdsm-${version}.tar.bz2 | |
tar jxf bdsm-${version}.tar.bz2 | |
cd bdsm-${version} | |
./install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment