Skip to content

Instantly share code, notes, and snippets.

@jamesalbert
Created April 25, 2017 20:35
Show Gist options
  • Save jamesalbert/185d896101c85fab6179541a07733ba8 to your computer and use it in GitHub Desktop.
Save jamesalbert/185d896101c85fab6179541a07733ba8 to your computer and use it in GitHub Desktop.
install the bash testing framework bats on linux
#!/usr/bin/env bash
read -p "Where do you want to install bats? [~/.local] > " batspath
if [[ -z "$batspath" ]]; then
batspath="$HOME/.local"
fi
cd $HOME
git clone https://github.com/sstephenson/bats.git
cd bats
./install.sh $batspath
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment