From e6c4b8cba34a85ce6dcc3a9b69e2b0b9419cfcad Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Fri, 6 May 2011 21:15:09 +0000 Subject: [PATCH] modified wget a bit for xiin to make it more robust, I hope --- inxi | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/inxi b/inxi index b102d16..e04d2ec 100755 --- a/inxi +++ b/inxi @@ -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'