summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bsdconfig
diff options
context:
space:
mode:
authorgjb <gjb@FreeBSD.org>2013-12-05 01:06:05 +0000
committergjb <gjb@FreeBSD.org>2013-12-05 01:06:05 +0000
commit5ddf02a63e18f7801bf1273e9d423139186b985f (patch)
tree70062e2269b55c5913581d9f5e9ca1032bdfcfda /usr.sbin/bsdconfig
parent190b91ee4bb77aef895a84fdd7f8fd4956c12e0f (diff)
downloadFreeBSD-src-5ddf02a63e18f7801bf1273e9d423139186b985f.zip
FreeBSD-src-5ddf02a63e18f7801bf1273e9d423139186b985f.tar.gz
MFC r258854:
Fix PKG_ABI detection in bsdconfig(8) after pkg-1.2 is released, since the format of 'pkg -vv' output has changed. Approved by: re (hrs) Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'usr.sbin/bsdconfig')
-rw-r--r--usr.sbin/bsdconfig/share/common.subr2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/bsdconfig/share/common.subr b/usr.sbin/bsdconfig/share/common.subr
index 31da26e..dd8c534 100644
--- a/usr.sbin/bsdconfig/share/common.subr
+++ b/usr.sbin/bsdconfig/share/common.subr
@@ -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
OpenPOWER on IntegriCloud