Test the presence of wget, which was not done before, although

it is neede for downloading pacakges
This commit is contained in:
Pierre Labastie 2013-02-19 18:00:22 +00:00
parent 57ec8958ed
commit 4f700a968d

View file

@ -119,6 +119,16 @@ check_prerequisites() { #
exit 1
fi
# Check for minimum wget version
WGET_LOC="$(whereis -b wget | cut -d" " -f2)"
if [ -x $WGET_LOC ]; then
wgetVer="$(wget --version | head -n1 | cut -d" " -f3)"
check_version "1.0.0" "${wgetVer}" "WGET"
else
echo "${nl_}\"${RED}wget${OFF}\" ${BOLD}must be installed on your system for jhalfs to run"
exit 1
fi
# Check for minimum libxml2 and libxslt versions
xsltprocVer=$(xsltproc -V | head -n1 )
libxmlVer=$(echo $xsltprocVer | cut -d " " -f3)