1
0
Fork 0
forked from mirrors/openup

Better regex.

This commit is contained in:
Antoine Jacoutot 2013-08-13 15:34:25 +02:00
commit 806910046d

4
openup
View file

@ -58,10 +58,10 @@ if ! grep -q installpath /etc/pkg.conf 2>/dev/null; then
fi
# check that we have no installed binpatches from a previous release
_BPLIST=$(pkg_info -q |grep binpatch)
_BPLIST=$(pkg_info -q | grep "^binpatch")
if [ -n "${_BPLIST}" ]; then
_i=$(echo ${_BPLIST} | wc -w)
_v=$(echo ${_BPLIST} | grep binpatch${REL_INT} | wc -w)
_v=$(echo ${_BPLIST} | grep "^binpatch${REL_INT}" | wc -w)
if [ "${_i}" -ne "${_v}" ]; then
error "Binpatch(es) from a previous release installed"
fi