From 776719b25b3ee686ab09f9ace79bda2ac3134b87 Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Thu, 20 Mar 2014 19:48:03 +0000 Subject: [PATCH] debugger output file name change to make it a bit cleaner --- inxi | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/inxi b/inxi index 6bd53dc..506c9d4 100755 --- a/inxi +++ b/inxi @@ -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