Allow "wget --version" to return a missing version field, since only

wget presence is required
This commit is contained in:
Pierre Labastie 2014-10-31 10:08:40 +00:00
parent a743e57256
commit 2af991dc0b

View file

@ -193,7 +193,10 @@ inline_doc
WGET_LOC="$(whereis -b wget | cut -d" " -f2)"
if [ -x $WGET_LOC ]; then
wgetVer="$(wget --version | head -n1 | cut -d" " -f3)"
if echo "$wgetVer" | grep -q '^[[:digit:]]'; then
check_version "1.0.0" "${wgetVer}" "WGET"
else echo Wget detected, but no version found. Continuing anyway.
fi
else
echo "${nl_}\"${RED}wget${OFF}\" ${BOLD}must be installed on your system for jhalfs to run"
exit 1