debugger output file name change to make it a bit cleaner

This commit is contained in:
inxi-svn 2014-03-20 19:48:03 +00:00
parent a830e996ac
commit 776719b25b

12
inxi
View file

@ -1534,12 +1534,18 @@ debug_data_collector()
local completed_gz_file='' xiin_file='xiin.py' ftp_upload='ftp.techpatterns.com/incoming'
local Line='-------------------------'
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
bsd_string="$BSD_TYPE-"
bsd_string="-$BSD_TYPE"
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 [[ -n $ALTERNATE_FTP ]];then