Minor tweak to comments

This commit is contained in:
Nathaniel Landau
2015-02-09 08:32:57 -05:00
parent d713705c76
commit 37c17e35a9
3 changed files with 5 additions and 6 deletions

View File

@@ -209,7 +209,7 @@ done
# Trap bad exits with your cleanup function
trap trapCleanup EXIT INT TERM
# Exit on error. Append ||true if you expect an error.
# Exit on error. Append '||true' when you run the script if you expect an error.
set -o errexit
# Run in debug mode, if set
@@ -223,10 +223,9 @@ if [ "${strict}" == "1" ]; then
fi
# Bash will remember & return the highest exitcode in a chain of pipes.
# This way you can catch the error in case mysqldump fails in `mysqldump |gzip`
# This way you can catch the error in case mysqldump fails in `mysqldump |gzip`, for example.
set -o pipefail
mainScript # Run your script
safeExit # Exit cleanly