From 181712f1a385dd33ead0739917e564a2ed450f88 Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Sat, 7 May 2011 03:40:57 +0000 Subject: [PATCH] tweaked xiin exit error handling --- inxi | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/inxi b/inxi index 1a7cde5..c1535e4 100755 --- a/inxi +++ b/inxi @@ -1261,7 +1261,12 @@ debug_data_collector() error_handler 17 'xiin' elif [[ -n $( grep -s 'checkPython' xiin ) ]];then echo 'Running xiin tool now on /sys...' - python ./xiin -d /sys -f $xiin_data_file || error_handler 19 'xiin' + python ./xiin -d /sys -f $xiin_data_file + if [[ $? -ne 0 ]];then + echo "xiin exited with error $? - removing data file before exiting." + rm -f $xiin_data_file + error_handler 19 'xiin' + fi else error_handler 18 'xiin' fi