summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>2010-01-12 15:51:20 +0000
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>2010-01-12 15:51:20 +0000
commite65985a3d9cca9c2b3b2db41460fea594c650662 (patch)
treed7ec96d7aab4c28875d605d15f15377d4b1aca23
parent0fff588cdd559c9ccca759d4c55647572b2ca831 (diff)
astribank_hook: fix fo no NL in end of xpp_order
Fix counting the relevant lines from xpp_order even if that line has no newline character in the end. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@7894 a0bf4364-ded3-4de4-8d8a-66a801d63aff
-rwxr-xr-xxpp/astribank_hook2
1 files changed, 1 insertions, 1 deletions
diff --git a/xpp/astribank_hook b/xpp/astribank_hook
index dc55d14..52e2826 100755
--- a/xpp/astribank_hook
+++ b/xpp/astribank_hook
@@ -40,7 +40,7 @@ export DAHDI_CFG_CMD="dahdi_cfg -c $dahdi_conf/system.conf"
export CALLED_FROM_ATRIBANK_HOOK=yes
clean_lines() {
- sed -e 's/#.*//' -e 'y/\t/ /' -e 's/^ *//' -e 's/ *$//' "$XPPORDER_CONF"
+ sed -e 's/#.*//' -e 'y/\t/ /' -e 's/^ *//' -e 's/ *$//' -e '$s/$/\n/' "$XPPORDER_CONF"
}
matched_devices() {