diff --git a/inxi b/inxi index 3d30ec4..651ed17 100755 --- a/inxi +++ b/inxi @@ -39,6 +39,9 @@ #### VARIABLES ######################################################################## +## NOTE: we can use hwinfo if it's available in all systems, or most, to get +## a lot more data and verbosity levels going + ### Variable initializations: null values CMDL_MAX='' @@ -230,7 +233,7 @@ script_debugger() if [ "$DEBUG" -eq 0 ];then return fi - if ((DEBUG_BUFFER_INDEX));then + if [ "$DEBUG_BUFFER_INDEX" -gt 0 ];then for (( DEBUG_BUFFER_INDEX=0; DEBUG_BUFFER_INDEX < ${#a_debug_buffer[@]}; DEBUG_BUFFER_INDEX++ )) do print_screen_output "${a_debug_buffer[DEBUG_BUFFER_INDEX]}"