diff options
author | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2010-01-12 15:51:20 +0000 |
---|---|---|
committer | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2010-01-12 15:51:20 +0000 |
commit | e65985a3d9cca9c2b3b2db41460fea594c650662 (patch) | |
tree | d7ec96d7aab4c28875d605d15f15377d4b1aca23 | |
parent | 0fff588cdd559c9ccca759d4c55647572b2ca831 (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-x | xpp/astribank_hook | 2 |
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() { |