Skip to content

Instantly share code, notes, and snippets.

@dbathily
Created August 14, 2013 20:50
Show Gist options
  • Save dbathily/6235455 to your computer and use it in GitHub Desktop.
Save dbathily/6235455 to your computer and use it in GitHub Desktop.
Print debug information only if debug flag is set.
function debug() {
if [[ $DEBUG ]]
then
echo ">>> $*"
fi
}
# For any debug message
debug "Trying to find config file"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment