temporary workaround for sudo version check. Current test will fail when there is [:alpha:] in version number

This commit is contained in:
George Boudreau 2006-09-12 21:38:16 +00:00
parent 917166ed11
commit 786e86c71d

2
jhalfs
View file

@ -252,7 +252,7 @@ check_version "1.15.0" "${tarVer}" "TAR"
SUDO_LOC="`whereis -b sudo | cut -d " " -f2`"
if [ -x $SUDO_LOC ]; then
sudoVer=`sudo -V | head -n1 | cut -d " " -f3`
echo "SUDO ${L_arrow}${BOLD}${sudoVer}${R_arrow}${OFF} ..OK"
check_version "1.6.8" "${sudoVer}" "SUDO"
else
echo "${nl_}\"${RED}sudo${OFF}\" ${BOLD}must be installed on your system for jhalfs to run"
exit 1