modified wget a bit for xiin to make it more robust, I hope

This commit is contained in:
inxi-svn 2011-05-06 21:15:09 +00:00
parent 9dfb064843
commit e6c4b8cba3

6
inxi
View file

@ -1253,7 +1253,11 @@ debug_data_collector()
xiin_data_file=$SCRIPT_DATA_DIR/$xiin_data_dir/xiin-sys.txt
echo 'Downloading required tree traverse tool xiin...'
wget -q -O xiin http://inxi.googlecode.com/svn/branches/xiin/xiin || error_handler 17 'xiin'
wget -q -Nc http://inxi.googlecode.com/svn/branches/xiin/xiin
# if nothing got downloaded kick out error, otherwise we'll use an older version
if [[ $? -gt 0 && ! -f xiin ]];then
error_handler 17 'xiin'
fi
if [[ -n $( grep 'checkPython' xiin ) ]];then
echo 'Running xiin tool now on /sys...'
python ./xiin -d /sys -f $xiin_data_file || error_handler 19 'xiin'