diff --git a/dahdi_span_assignments b/dahdi_span_assignments index 19c70d3..bcafe89 100755 --- a/dahdi_span_assignments +++ b/dahdi_span_assignments @@ -141,7 +141,7 @@ fi if [ "$#" -gt 0 ]; then DEVICES="$@" else - DEVICES=`echo $devbase/*` + DEVICES=`ls -d $devbase/* 2>/dev/null` fi # Beware of special characters in attributes diff --git a/dahdi_span_types b/dahdi_span_types index 48a0854..b12fc6f 100755 --- a/dahdi_span_types +++ b/dahdi_span_types @@ -120,7 +120,7 @@ fi if [ "$#" -gt 0 ]; then DEVICES="$@" else - DEVICES=`echo $devbase/*` + DEVICES=`ls -d $devbase/* 2>/dev/null` fi # Beware of special characters in attributes