diff --git a/openup b/openup index 2f5953c..f6aed1a 100755 --- a/openup +++ b/openup @@ -155,7 +155,7 @@ check_openupd() { # modify nor error out on installed files from newer release/binpatch) rm_old_bp() { local _bp - local _BPDB=$(ls -d /var/db/binpatch/[0-9]* |grep -v ${_REL}) + local _BPDB=$(ls -d /var/db/binpatch/{binpatch-,}[0-9]* |grep -v ${_REL}) local _BPPKG=$(ls -d /var/db/pkg/binpatch* |grep -v binpatch${_REL_INT}) if [ -n "${_BPPKG}" -o -n "${_BPDB}" ]; then pr_bigarrow "Removing old binpatch(es) entry"