diff --git a/inxi b/inxi index dbb0b40..8cc3749 100755 --- a/inxi +++ b/inxi @@ -3371,7 +3371,7 @@ get_network_advanced_data() if [[ -n $working_path && -n $product_path ]] && [[ $working_path == $product_path ]];then # now ls that directory and get the numeric starting sub directory and that should be the full path # to the /net directory part - dir_path=$( ls ${working_path} | grep -sE '^[0-9]' ) + dir_path=$( ls ${working_path} 2>/dev/null | grep -sE '^[0-9]' ) working_path="${working_path}${dir_path}" fi fi