From 91f0cdfa8e8fe9e7aae4a16d5fc74843ac2cce9a Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Tue, 18 Jun 2019 22:14:33 -0600 Subject: [PATCH] add trap for abnormal termination --- seafbackup.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/seafbackup.sh b/seafbackup.sh index dd6093e..cbb75ed 100755 --- a/seafbackup.sh +++ b/seafbackup.sh @@ -15,6 +15,10 @@ cyan=$(tput setaf 6) magenta=$(tput setaf 5) +### trap +trap cleanup 1 2 3 6 + + ### functions # bad configuration value passed in details file