mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 08:35:25 +00:00
tweaked xiin exit error handling
This commit is contained in:
parent
e66e327025
commit
181712f1a3
7
inxi
7
inxi
|
@ -1261,7 +1261,12 @@ debug_data_collector()
|
||||||
error_handler 17 'xiin'
|
error_handler 17 'xiin'
|
||||||
elif [[ -n $( grep -s 'checkPython' xiin ) ]];then
|
elif [[ -n $( grep -s 'checkPython' xiin ) ]];then
|
||||||
echo 'Running xiin tool now on /sys...'
|
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
|
else
|
||||||
error_handler 18 'xiin'
|
error_handler 18 'xiin'
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue