Skip to content

Instantly share code, notes, and snippets.

@coltrane
Created February 14, 2019 16:50
Show Gist options
  • Save coltrane/7229e01bd4ef7e7da2ef17454c3d3974 to your computer and use it in GitHub Desktop.
Save coltrane/7229e01bd4ef7e7da2ef17454c3d3974 to your computer and use it in GitHub Desktop.
better error handling in bash
#!/bin/bash
set -Eeuo pipefail
# for debug...
#set -x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment