mirror of
https://github.com/smxi/inxi.git
synced 2025-01-19 00:47:47 +00:00
(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:
parent
a2a6dc0aeb
commit
1ea30c905a
9
inxi
9
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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue