From 049116e1810680275a42faba430fb2f798cb17d8 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 13 Oct 2011 11:34:04 +0100 Subject: [PATCH] virt-sysprep: Trap ERR as well as EXIT. --- clone/virt-sysprep.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clone/virt-sysprep.in b/clone/virt-sysprep.in index 4448860..b6c8a40 100644 --- a/clone/virt-sysprep.in +++ b/clone/virt-sysprep.in @@ -180,7 +180,7 @@ cleanup () kill $GUESTFISH_PID >/dev/null 2>&1 ||: rm -rf "$tmpdir" ||: } -trap cleanup EXIT +trap cleanup EXIT ERR # Helper. gf="guestfish --remote --" -- 1.8.3.1