From 4f700a968dd6d698ba1bdb692ad176fd9e349d93 Mon Sep 17 00:00:00 2001 From: Pierre Labastie Date: Tue, 19 Feb 2013 18:00:22 +0000 Subject: [PATCH] Test the presence of wget, which was not done before, although it is neede for downloading pacakges --- common/libs/func_check_version.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/common/libs/func_check_version.sh b/common/libs/func_check_version.sh index 3915f9e..3f7b948 100644 --- a/common/libs/func_check_version.sh +++ b/common/libs/func_check_version.sh @@ -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)