Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Dengler <martin@martindengler.com>2009-06-11 22:34:36 (GMT)
committer Martin Dengler <martin@martindengler.com>2009-06-11 22:34:36 (GMT)
commit6ad49442509ff59a34ad55ec1519cea63d154fd6 (patch)
treef63c73b27d70b5f02d9d4df072a9c392b390ad2f
parent40e93a8faf0262b857cda8650a256911119088a8 (diff)
livecd-iso-to-xo.sh: move the trap earlier otherwise it's somewhat pointless
-rwxr-xr-xlivecd-iso-to-xo.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/livecd-iso-to-xo.sh b/livecd-iso-to-xo.sh
index 23e35de..5c8cd23 100755
--- a/livecd-iso-to-xo.sh
+++ b/livecd-iso-to-xo.sh
@@ -14,6 +14,8 @@ exitclean() {
exit 1
}
+trap exitclean SIGINT SIGTERM
+
ISO=$(readlink -f "$1")
IMG=$(readlink -f "$2")
@@ -50,7 +52,5 @@ sumtool -n -p -e 128KiB -i $IMG.tmp -o $IMG
rm $IMG.tmp
crcimg $IMG
-trap exitclean SIGINT SIGTERM
-
echo "Done."
cleanup