Skip to content

Instantly share code, notes, and snippets.

@TimothyJones
Last active August 13, 2019 01:38
Show Gist options
  • Save TimothyJones/5ad601d3bc0ea40aa4c8da30ee7f4c84 to your computer and use it in GitHub Desktop.
Save TimothyJones/5ad601d3bc0ea40aa4c8da30ee7f4c84 to your computer and use it in GitHub Desktop.
Bash script safe mode
# start your script with
#!/bin/bash -eu
# Or
#!/usr/bin/env bash
set -o errexit
set -o nounset
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment