From 1ea30c905a498702b8661acaa1c3584118f88c0a Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Sat, 13 Dec 2008 21:34:38 +0000 Subject: [PATCH] (change version) fixed more in debugger, at least now it's clear that it basically does nothing in its current state but print some stuff. --- inxi | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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 }