Created
May 13, 2015 14:51
-
-
Save corburn/709d8e9ffaa180370652 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/bin/bash | |
# | |
# A boilerplate script template | |
# | |
# https://google-styleguide.googlecode.com/svn/trunk/shell.xml | |
# http://shelldorado.com/goodcoding/ | |
####################################### | |
# Cleanup files from the backup dir | |
# Globals: | |
# BACKUP_DIR | |
# ORACLE_SID | |
# Arguments: | |
# None | |
# Returns: | |
# None | |
####################################### | |
err() { | |
echo "[$(date +'%Y-%m-%dT%H:%M:%S%z')]: $@" >&2 | |
} | |
if ! do_something; then | |
err "Unable to do_something" | |
exit "${E_DID_NOTHING}" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment