Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/distrib/utils/embedded move 'trap' after command args are pa...
details: https://anonhg.NetBSD.org/src/rev/f5839253d6e8
branches: trunk
changeset: 783989:f5839253d6e8
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Mon Jan 14 12:12:19 2013 +0000
description:
move 'trap' after command args are parsed
diffstat:
distrib/utils/embedded/mkimage | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r 6785de7de854 -r f5839253d6e8 distrib/utils/embedded/mkimage
--- a/distrib/utils/embedded/mkimage Mon Jan 14 11:59:18 2013 +0000
+++ b/distrib/utils/embedded/mkimage Mon Jan 14 12:12:19 2013 +0000
@@ -1,6 +1,6 @@
#! /bin/sh
-# $NetBSD: mkimage,v 1.7 2013/01/13 21:51:47 christos Exp $
+# $NetBSD: mkimage,v 1.8 2013/01/14 12:12:19 jmcneill Exp $
# Copyright (c) 2012 Alistair Crooks <agc%NetBSD.org@localhost>
# All rights reserved.
@@ -102,7 +102,6 @@
${sudo} vnconfig -u ${vnddev}
}
-trap finish 0 1 2 3 15
DIR="$(dirname "$0")"
PROG="$(basename "$0")"
bar="==="
@@ -147,6 +146,8 @@
esac
done
+trap finish 0 1 2 3 15
+
shift $(( "$OPTIND" - 1 ))
if [ -n "$1" ]; then
# take the next argument as being the image name
Home |
Main Index |
Thread Index |
Old Index