From: Richard W.M. Jones Date: Thu, 13 Oct 2011 10:34:04 +0000 (+0100) Subject: virt-sysprep: Trap ERR as well as EXIT. X-Git-Tag: 1.13.21~20 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=049116e1810680275a42faba430fb2f798cb17d8;p=libguestfs.git virt-sysprep: Trap ERR as well as EXIT. --- 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 --"