Fix the file test for FreeBSD/HBSD

This commit is contained in:
Lucas Holt committed 2021-02-27 00:13:01 -05:00
1 parent 1710a09f6a
commit 54697cf77a
1 file changed
+1 -1
+1 -1
View File
@@ -47,7 +47,7 @@ fi
for _jail in ${JAILS}; do for _jail in ${JAILS}; do
info "[${_jail}]:" info "[${_jail}]:"
if [ -f ${_jail}/usr/sbin/pkg ]; then if [ -f /usr/sbin/pkg ]; then
jexec -l "${_jail}" /usr/sbin/pkg "$@" jexec -l "${_jail}" /usr/sbin/pkg "$@"
else else
jexec -l "${_jail}" /usr/sbin/mport "$@" jexec -l "${_jail}" /usr/sbin/mport "$@"