Last active
August 13, 2019 01:38
-
-
Save TimothyJones/5ad601d3bc0ea40aa4c8da30ee7f4c84 to your computer and use it in GitHub Desktop.
Bash script safe mode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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