mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 08:35:25 +00:00
modified wget a bit for xiin to make it more robust, I hope
This commit is contained in:
parent
9dfb064843
commit
e6c4b8cba3
6
inxi
6
inxi
|
@ -1253,7 +1253,11 @@ debug_data_collector()
|
||||||
xiin_data_file=$SCRIPT_DATA_DIR/$xiin_data_dir/xiin-sys.txt
|
xiin_data_file=$SCRIPT_DATA_DIR/$xiin_data_dir/xiin-sys.txt
|
||||||
|
|
||||||
echo 'Downloading required tree traverse tool xiin...'
|
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
|
if [[ -n $( grep '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 || error_handler 19 'xiin'
|
||||||
|
|
Loading…
Reference in a new issue