From e90773cfe9066856bf04bb2600b43a96466ea0be Mon Sep 17 00:00:00 2001 From: tschettervictor <85497460+tschettervictor@users.noreply.github.com> Date: Fri, 7 Nov 2025 16:03:09 -0700 Subject: [PATCH] update: verify pkgbase --- usr/local/share/bastille/update.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/local/share/bastille/update.sh b/usr/local/share/bastille/update.sh index 7426cc3a..0824849a 100644 --- a/usr/local/share/bastille/update.sh +++ b/usr/local/share/bastille/update.sh @@ -131,7 +131,7 @@ jail_check() { if [ -z "${CURRENT_VERSION}" ]; then error_exit "[ERROR]: Can't determine '${TARGET}' version." fi - if [ "${MAJOR_VERSION}" -ge 16 ] || pkg -r "${bastille_jailsdir}/${TARGET}/root" -N 2>/dev/null; then + if [ "${MAJOR_VERSION}" -ge 16 ] || pkg -r "${bastille_jailsdir}/${TARGET}/root" which /usr/bin/uname > /dev/null 2>&1; then PKGBASE=1 fi } @@ -224,7 +224,7 @@ release_check() { else FREEBSD_BRANCH="release" fi - if [ "${MAJOR_VERSION}" -ge 16 ] || pkg -r "${bastille_releasesdir}/${TARGET}" -N 2>/dev/null; then + if [ "${MAJOR_VERSION}" -ge 16 ] || pkg -r "${bastille_releasesdir}/${TARGET}" which /usr/bin/uname > /dev/null 2>&1; then PKGBASE=1 fi }