diff --git a/inxi b/inxi index 1b7efd4..d97259a 100755 --- a/inxi +++ b/inxi @@ -1,7 +1,7 @@ #!/bin/bash ######################################################################## #### Script Name: inxi -#### version: 0.8.6 +#### version: 0.8.7 #### Date: December 13 2008 ######################################################################## #### inxi is a fork of infobash 3.02, the original bash sys info script by locsmif @@ -303,6 +303,8 @@ error_handler() exit $1 } +# note: this debugger is largely useless in its current condition, but +# we'll leave this up for now. I dumped the all-up debugging variable # args: $1 - $@ debugging string text; $2 - type: missing-app/all-up script_debugger() { @@ -318,13 +320,14 @@ script_debugger() print_screen_output "${a_debug_buffer[$DEBUG_BUFFER_INDEX]}" done DEBUG_BUFFER_INDEX=0 + print_screen_output "$1" fi - print_screen_output "$@" else if [[ $B_DEBUG_FLOOD == 'true' && $DEBUG_BUFFER_INDEX -gt 10 ]];then error_handler 2 + else + a_debug_buffer[DEBUG_BUFFER_INDEX++]="$1" fi - a_debug_buffer[DEBUG_BUFFER_INDEX++]="$@" fi }