Fix failed attempt to send pkg(8) stderr to /dev/null

MFC after:	3 days
This commit is contained in:
Devin Teske 2013-12-09 01:30:20 +00:00
parent 8b3d3bafec
commit 59d9c9e1c6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=259113

View File

@ -64,8 +64,8 @@ export UNAME_M="$( uname -m )" # Machine platform (i.e. i386)
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 $3;exit}' 2> /dev/null
ASSUME_ALWAYS_YES=1 pkg -vv 2> /dev/null |
awk '$1=="ABI"{print $3;exit}'
)"
fi