mirror of
https://github.com/natelandau/shell-scripting-templates.git
synced 2025-11-09 21:53:47 -05:00
fixed trap function
This commit is contained in:
@@ -513,7 +513,7 @@ done
|
||||
# ############# ############# #############
|
||||
|
||||
# Trap bad exits with your cleanup function
|
||||
trap trapCleanup INT TERM
|
||||
trap trapCleanup EXIT INT TERM
|
||||
|
||||
# Exit on error. Append ||true if you expect an error.
|
||||
set -o errexit
|
||||
|
||||
Reference in New Issue
Block a user