diff --git a/inxi b/inxi index a70d4be..3ecb3a7 100755 --- a/inxi +++ b/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