[Pkg-voip-commits] [dahdi-tools] 170/285: dahdi_span_types: hush warning of missing attribute

tzafrir at debian.org tzafrir at debian.org
Thu Jul 7 19:18:51 UTC 2016


This is an automated email from the git hooks/post-receive script.

tzafrir pushed a commit to branch master
in repository dahdi-tools.

commit d3feed5c4c81d445e94b3ba8934583310b77bd98
Author: Tzafrir Cohen <tzafrir.cohen at xorcom.com>
Date:   Thu Jan 23 17:55:38 2014 +0200

    dahdi_span_types: hush warning of missing attribute
    
    Don't warn when a sysfs attribute does not exist.
    
    Signed-off-by: Tzafrir Cohen <tzafrir.cohen at xorcom.com>
    Acked-By: Russ Meyerriecks <rmeyerriecks at digium.com>
---
 dahdi_span_types | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dahdi_span_types b/dahdi_span_types
index 38dc347..85204d8 100755
--- a/dahdi_span_types
+++ b/dahdi_span_types
@@ -166,7 +166,7 @@ fi
 
 # Beware of special characters in attributes
 attr_clean() {
-	cat "$1" | tr -d '\n' | tr '!' '/' | tr -c 'a-zA-Z0-9/:.-' '_'
+	cat "$1" 2>/dev/null | tr -d '\n' | tr '!' '/' | tr -c 'a-zA-Z0-9/:.-' '_'
 }
 
 show_spantypes() {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-voip/dahdi-tools.git



More information about the Pkg-voip-commits mailing list