summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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