Skip to content

Instantly share code, notes, and snippets.

@wayneeseguin
Created August 8, 2011 01:11
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 wayneeseguin/1131018 to your computer and use it in GitHub Desktop.
Save wayneeseguin/1131018 to your computer and use it in GitHub Desktop.
bash script to install bdsm
#!/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
#!/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