[dahdi-commits] tzafrir: tools/trunk r7894 -	/tools/trunk/xpp/astribank_hook
    SVN commits to the DAHDI project 
    dahdi-commits at lists.digium.com
       
    Tue Jan 12 09:51:24 CST 2010
    
    
  
Author: tzafrir
Date: Tue Jan 12 09:51:20 2010
New Revision: 7894
URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=7894
Log:
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.
Modified:
    tools/trunk/xpp/astribank_hook
Modified: tools/trunk/xpp/astribank_hook
URL: http://svnview.digium.com/svn/dahdi/tools/trunk/xpp/astribank_hook?view=diff&rev=7894&r1=7893&r2=7894
==============================================================================
--- tools/trunk/xpp/astribank_hook (original)
+++ tools/trunk/xpp/astribank_hook Tue Jan 12 09:51:20 2010
@@ -40,7 +40,7 @@
 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() {
    
    
More information about the dahdi-commits
mailing list