From e65985a3d9cca9c2b3b2db41460fea594c650662 Mon Sep 17 00:00:00 2001 From: Tzafrir Cohen Date: Tue, 12 Jan 2010 15:51:20 +0000 Subject: 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 --- xpp/astribank_hook | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() { -- cgit v1.2.3