Added exit_function to bash_simple_template.
Change-Id: Iddb34c91e0a02f39bf1214c4c7630822f660a1fc
Signed-off-by: Michael Walsh <micwalsh@us.ibm.com>
diff --git a/templates/bash_simple_template b/templates/bash_simple_template
index 03e3f86..9606209 100755
--- a/templates/bash_simple_template
+++ b/templates/bash_simple_template
@@ -19,6 +19,12 @@
}
+function exit_function {
+
+ return
+
+}
+
function validate_parms {
# Validate program parameters.
@@ -30,6 +36,8 @@
return 1
fi
+ trap "exit_function $signal \$?" EXIT
+
return 0
}