Fix PKG_ABI detection in bsdconfig(8) after pkg-1.2 is released, since

the format of 'pkg -vv' output has changed.

MFC after:	3 days
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Glen Barber 2013-12-02 19:02:58 +00:00
parent f7f650c76a
commit b24db45b3f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=258854

View File

@ -65,7 +65,7 @@ export UNAME_R="$(uname -r)" # Release Level (i.e. X.Y-RELEASE)
if [ ! "${PKG_ABI+set}" ]; then
export PKG_ABI="$(
ASSUME_ALWAYS_YES=1 pkg -vv |
awk '$1=="ABI:"{print $2;exit}' 2> /dev/null
awk '$1=="ABI"{print $3;exit}' 2> /dev/null
)"
fi