forked from mirrors/openup
Better regex.
This commit is contained in:
parent
6f43e19082
commit
806910046d
1 changed files with 2 additions and 2 deletions
4
openup
4
openup
|
|
@ -58,10 +58,10 @@ if ! grep -q installpath /etc/pkg.conf 2>/dev/null; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# check that we have no installed binpatches from a previous release
|
# 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
|
if [ -n "${_BPLIST}" ]; then
|
||||||
_i=$(echo ${_BPLIST} | wc -w)
|
_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
|
if [ "${_i}" -ne "${_v}" ]; then
|
||||||
error "Binpatch(es) from a previous release installed"
|
error "Binpatch(es) from a previous release installed"
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue