summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Huwald <jh@sotun.de>2012-04-23 16:10:42 (GMT)
committerJan Huwald <jh@sotun.de>2012-04-23 16:10:42 (GMT)
commite17dffd20dd5139b80799825591b56a68162520a (patch)
tree4afcbefce7373fdd0f11f6da152ec0fbbfb2c93d
parentb9dd73d067164db087822a39960573345c06aa9b (diff)
p2ptbl: polish
-rwxr-xr-xfiles/common/sbin/p2ptbl6
1 files changed, 3 insertions, 3 deletions
diff --git a/files/common/sbin/p2ptbl b/files/common/sbin/p2ptbl
index 0a5bae3..3c18855 100755
--- a/files/common/sbin/p2ptbl
+++ b/files/common/sbin/p2ptbl
@@ -1,6 +1,4 @@
-#!/bin/sh
-
-set -e
+#!/bin/sh -e
init () {
[ -n "$1" ] || printArgs
@@ -48,6 +46,8 @@ update () {
}
merge () {
+ # we use sort instead of merge here to be robust in case the rows
+ # are not sorted
sort "$1" "$2" \
| {
oldkey=""
contact: Jan Huwald // Impressum