Fix the file test for FreeBSD/HBSD

This commit is contained in:
Lucas Holt
2021-02-27 00:13:01 -05:00
parent 1710a09f6a
commit 54697cf77a

View File

@@ -47,7 +47,7 @@ fi
for _jail in ${JAILS}; do
info "[${_jail}]:"
if [ -f ${_jail}/usr/sbin/pkg ]; then
if [ -f /usr/sbin/pkg ]; then
jexec -l "${_jail}" /usr/sbin/pkg "$@"
else
jexec -l "${_jail}" /usr/sbin/mport "$@"