Skip to content

Instantly share code, notes, and snippets.

@joffotron
Created July 12, 2016 07:31
Show Gist options
  • Save joffotron/2404b2e980b7871f0dcc8684b29d0586 to your computer and use it in GitHub Desktop.
Save joffotron/2404b2e980b7871f0dcc8684b29d0586 to your computer and use it in GitHub Desktop.
function do_cleanup {
echo "--- Cleaning up all my trash"
rm -rf /tmp/all_the_things
}
trap do_cleanup EXIT
docker pull my-cool-thing:latest
rspec
echo ":party_parrot:"
./do-failing-thing
echo "Won't reach here"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment