From 1ed63484366a00d383a05f44b63319ed01837e20 Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Mon, 31 Mar 2014 18:51:55 +0000 Subject: [PATCH] tiny fix, added back in missing dash - to inxi debugger output file --- inxi | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/inxi b/inxi index 39c1f4d..f74af49 100755 --- a/inxi +++ b/inxi @@ -1550,7 +1550,7 @@ debug_data_collector() bsd_string="-$BSD_TYPE" 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" if [[ $B_IRC == 'false' ]];then if [[ -n $ALTERNATE_FTP ]];then @@ -1600,8 +1600,12 @@ debug_data_collector() initctl list &> $debug_data_dir/initctl-list.txt sensors &> $debug_data_dir/sensors.txt strings --version &> $debug_data_dir/strings.txt - nvidia-smi -q &> $debug_data_dir/nvidia-smi-q.txt - nvidia-smi -q -x &> $debug_data_dir/nvidia-smi-xq.txt + if type -p nvidia-smi &>/dev/null;then + nvidia-smi -q &> $debug_data_dir/nvidia-smi-q.txt + nvidia-smi -q -x &> $debug_data_dir/nvidia-smi-xq.txt + else + touch $debug_data_dir/nvidia-smi-absent + fi head -n 1 /proc/asound/card*/codec* &> $debug_data_dir/proc-asound-card-codec.txt ls /usr/bin/gcc* &> $debug_data_dir/gcc-sys-versions.txt gcc --version &> $debug_data_dir/gcc-version.txt