Allow "wget --version" to return a missing version field, since only
wget presence is required
This commit is contained in:
parent
a743e57256
commit
2af991dc0b
1 changed files with 4 additions and 1 deletions
|
@ -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)"
|
||||
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
|
||||
|
|
Reference in a new issue