(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.
This commit is contained in:
inxi-svn 2008-12-13 21:34:38 +00:00
parent a2a6dc0aeb
commit 1ea30c905a

9
inxi
View file

@ -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
}