mirror of
https://github.com/smxi/inxi.git
synced 2025-01-31 18:12:21 +00:00
debugger output file name change to make it a bit cleaner
This commit is contained in:
parent
a830e996ac
commit
776719b25b
12
inxi
12
inxi
|
@ -1534,12 +1534,18 @@ debug_data_collector()
|
||||||
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='-------------------------'
|
||||||
local start_directory=$( pwd )
|
local start_directory=$( pwd )
|
||||||
|
local host=$HOSTNAME
|
||||||
|
if [[ -n $host ]];then
|
||||||
|
host=${host// /-}
|
||||||
|
host="-${host,,}"
|
||||||
|
else
|
||||||
|
host="-no-host"
|
||||||
|
fi
|
||||||
if [[ -n $BSD_TYPE ]];then
|
if [[ -n $BSD_TYPE ]];then
|
||||||
bsd_string="$BSD_TYPE-"
|
bsd_string="-$BSD_TYPE"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
debug_data_dir="inxi-$bsd_string$(tr ' ' '-' <<< $HOSTNAME | tr '[A-Z]' '[a-z]' )-$1-$(date +%Y%m%d)"
|
debug_data_dir="inxi$bsd_string$host-$(date +%Y%m%d-%H%M%S)-$1"
|
||||||
|
|
||||||
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