Skip to content

Instantly share code, notes, and snippets.

Joshua Fox coffeejoshua

View GitHub Profile
View gist:439637f3261d729d061915d9503407fd
#!/usr/bin/env bash
# bash exit cleanup snippet
# By default, the shell will continue on errors (sometimes to your detriment)
# To learn about exit status, visit
# To learn about the set builtin, visit
# To learn about traps, visit
# We use set -e to exit immediately if a command exits with a non-zero status.
You can’t perform that action at this time.