Author: pierre
Date: Fri Oct 31 03:08:40 2014
New Revision: 3808

Log:
Allow "wget --version" to return a missing version field, since only
wget presence is required

Modified:
   jhalfs/trunk/common/libs/func_check_version.sh

Modified: jhalfs/trunk/common/libs/func_check_version.sh
==============================================================================
--- jhalfs/trunk/common/libs/func_check_version.sh      Sun Sep 28 01:06:23 
2014        (r3807)
+++ jhalfs/trunk/common/libs/func_check_version.sh      Fri Oct 31 03:08:40 
2014        (r3808)
@@ -193,7 +193,10 @@
   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"
+    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
-- 
http://lists.linuxfromscratch.org/listinfo/alfs-log
Unsubscribe: See the above information page

Reply via email to