mirror of
https://github.com/smxi/inxi.git
synced 2024-11-16 16:21:39 +00:00
bug fix, forgot the null file case
This commit is contained in:
parent
856ed2bc1b
commit
a7bb5b5ac1
2
inxi
2
inxi
|
@ -3407,7 +3407,7 @@ get_distro_data()
|
|||
fi
|
||||
## finally, if all else has failed, give up
|
||||
if [[ -z $distro ]];then
|
||||
if [[ " $DISTROS_DERIVED $DISTROS_PRIMARY " == *" $distro_file "* ]];then
|
||||
if [[ -n $distro_file ]] && [[ " $DISTROS_DERIVED $DISTROS_PRIMARY " == *" $distro_file "* ]];then
|
||||
distro=$( sed -E -e 's/[-_]//' -e 's/(release|version)//' <<< $distro_file | sed -E 's/^([a-z])/\u\1/' )
|
||||
fi
|
||||
if [[ -z $distro ]];then
|
||||
|
|
Loading…
Reference in a new issue