OSSP CVS Repository

ossp - Difference in ossp-pkg/shtool/sh.common versions 1.19 and 1.20
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

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
+}
+

CVSTrac 2.0.1