mirror of
https://github.com/smxi/inxi.git
synced 2024-11-16 16:21:39 +00:00
added root id to debugger file name
This commit is contained in:
parent
6bdfea0ad7
commit
508f94e992
7
inxi
7
inxi
|
@ -1575,7 +1575,7 @@ debug_data_collector()
|
||||||
local xiin_app='' xiin_data_file='' xiin_download='' error='' b_run_xiin='false'
|
local xiin_app='' xiin_data_file='' xiin_download='' error='' b_run_xiin='false'
|
||||||
local debug_data_dir='' bsd_string='' xorg_d_files='' xorg_file='' a_distro_ids=''
|
local debug_data_dir='' bsd_string='' xorg_d_files='' xorg_file='' a_distro_ids=''
|
||||||
local completed_gz_file='' xiin_file='xiin.py' ftp_upload='ftp.techpatterns.com/incoming'
|
local completed_gz_file='' xiin_file='xiin.py' ftp_upload='ftp.techpatterns.com/incoming'
|
||||||
local Line='-------------------------'
|
local Line='-------------------------' root_string=''
|
||||||
local start_directory=$( pwd )
|
local start_directory=$( pwd )
|
||||||
local host=$( tr '[A-Z]' '[a-z]' <<< "$HOSTNAME" )
|
local host=$( tr '[A-Z]' '[a-z]' <<< "$HOSTNAME" )
|
||||||
if [[ -n $host ]];then
|
if [[ -n $host ]];then
|
||||||
|
@ -1586,8 +1586,11 @@ debug_data_collector()
|
||||||
if [[ -n $BSD_TYPE ]];then
|
if [[ -n $BSD_TYPE ]];then
|
||||||
bsd_string="-$BSD_TYPE"
|
bsd_string="-$BSD_TYPE"
|
||||||
fi
|
fi
|
||||||
|
if [[ $( whoami ) == 'root' ]];then
|
||||||
|
root_string='-root'
|
||||||
|
fi
|
||||||
|
|
||||||
debug_data_dir="inxi$bsd_string-$host-$(date +%Y%m%d-%H%M%S)-$1"
|
debug_data_dir="inxi$bsd_string-$host-$(date +%Y%m%d-%H%M%S)-$1$root_string"
|
||||||
|
|
||||||
if [[ $B_IRC == 'false' ]];then
|
if [[ $B_IRC == 'false' ]];then
|
||||||
if [[ -n $ALTERNATE_FTP ]];then
|
if [[ -n $ALTERNATE_FTP ]];then
|
||||||
|
|
Loading…
Reference in a new issue