ossp-pkg/shtool/sh.common 1.19 -> 1.20
--- sh.common 2001/09/23 10:58:10 1.19
+++ sh.common 2003/02/11 12:56:39 1.20
@@ -174,3 +174,12 @@
chmod 600 $tmpfile
fi
+# cleanup procedure
+shtool_exit () {
+ rc="$1"
+ if [ ".$gen_tmpfile" = .yes ]; then
+ rm -f $tmpfile >/dev/null 2>&1 || true
+ fi
+ exit $rc
+}
+
|
|