mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
bug fix
This commit is contained in:
parent
ba8970db1b
commit
4fcd0b12af
2
inxi
2
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
|
||||
|
|
Loading…
Reference in a new issue