Okay, when nessus-installer.sh runs it default users lynx if it finds it rather
than wget. If a n00b like me changes the $fetch_cmd to wget without specifying
the proper options, the nessus-update-plugins fails miserably (as I found out).
The nessus-update-plugins diff below adds some checking to the $fetch_cmd
variable to ensure it has either lynx' "-source" or wget's "-q -O -" options.
This will make sure people like me still have a working nessus-update-plugins
even if we change the tool it uses to get the download.
There are a few different ways this could be done, and some of them are likely
more elegant...
168,172d165
< echo "$fetch_cmd" | grep "lynx" |grep -v "\-source" 2>&1 > /dev/null &&
< {
< fetch_cmd=`echo "$fetch_cmd" | awk -F" " '{ print $1 }'`
< fetch_cmd="$fetch_cmd -source"
< }
174,179d166
< echo "$fetch_cmd" | grep "wget" |grep -v "\-q \-O \-" 2>&1 > /dev/null &&
< {
< fetch_cmd=`echo "$fetch_cmd" | awk -F" " '{ print $1 }'`
< fetch_cmd="$fetch_cmd -q -O -"
< }
<
--
http://www.cirt.net/