Skip to content

Instantly share code, notes, and snippets.

@avkosme
Created September 4, 2018 21:18
Show Gist options
  • Select an option

  • Save avkosme/3149bcf2eef1204a05bc9345eb88c27b to your computer and use it in GitHub Desktop.

Select an option

Save avkosme/3149bcf2eef1204a05bc9345eb88c27b to your computer and use it in GitHub Desktop.
Configure the bash script to throw an error if any of the commands within it return a non-zero exit code.
#!/bin/bash
set -o errexit
apt-get update
apt-get upgrade -y
apt-get install -y git wget sudo
git clone https://github.com/facebook/osquery.git
cd /osquery
git checkout 1.0.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment