diff --git a/inxi b/inxi index e04a5a2..4e260c0 100755 --- a/inxi +++ b/inxi @@ -7410,7 +7410,12 @@ print_system_data() fi if [[ $B_SHOW_HOST == 'true' ]];then if [[ -z $HOSTNAME ]];then - host_name='N/A' + if [[ -n $( type p hostname ) ]];then + host_name=$( hostname ) + fi + if [[ -z $host_name ]];then + host_name='N/A' + fi fi host_string="${C1}Host${C2} $host_name " system_data=$( create_print_line "System:" "${C1}Host${C2} $host_name ${C1}Kernel${C2}" )