Skip to content

Instantly share code, notes, and snippets.

@int0x80
Created January 7, 2022 20:08
Show Gist options
  • Save int0x80/75c1a8494005dfa2ec383a52b12537e9 to your computer and use it in GitHub Desktop.
Save int0x80/75c1a8494005dfa2ec383a52b12537e9 to your computer and use it in GitHub Desktop.
# From https://twitter.com/ryancdotorg/status/1479171257732112384
# Strict mode for bash
set -uo pipefail
trap 's=$?; echo ": Error on line "$LINENO": $BASH_COMMAND"; exit $s' ERR
IFS=$'\n\t'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment