]> Pileus Git - ~andy/fetchmail/commitdiff
Remove temporary t.rc.* file even if fetchmail crashes.
authorMatthias Andree <matthias.andree@gmx.de>
Wed, 29 Mar 2006 11:04:17 +0000 (11:04 -0000)
committerMatthias Andree <matthias.andree@gmx.de>
Wed, 29 Mar 2006 11:04:17 +0000 (11:04 -0000)
svn path=/branches/BRANCH_6-3/; revision=4754

t.smoke

diff --git a/t.smoke b/t.smoke
index f7924a3c707f1b48ca7882e6d88ddcab2c11108d..c0ed8a66f3e82c2d3cf7b7e5b287dbbb7e76712f 100755 (executable)
--- a/t.smoke
+++ b/t.smoke
@@ -4,8 +4,8 @@
 # configuration and dump it in human-readable and machine-readable form.
 
 set -e
+trap 'rm -f t.rc.$$' 0
 cp "${srcdir}/t.rc" t.rc.$$
 chmod 0400 t.rc.$$
 ./fetchmail -V -f t.rc.$$ >/dev/null
 ./fetchmail --configdump -f t.rc.$$ >/dev/null
-rm -f t.rc.$$