This commit is contained in:
tschettervictor
2025-10-29 08:39:33 -06:00
parent f2f15027c6
commit 05432b45df
2 changed files with 2 additions and 2 deletions

View File

@@ -123,7 +123,7 @@ jail_check() {
CURRENT_VERSION="$(/usr/sbin/jexec -l "${TARGET}" freebsd-version 2>/dev/null)"
MINOR_VERSION=$(echo ${CURRENT_VERSION} | sed -E 's/^[0-9]+\.([0-9]+)-.*$/\1/')
MAJOR_VERSION=$(echo ${CURRENT_VERSION} | grep -Eo '^[0-9]+')
if echo "${CURRENT_VERSION}" | grep -oq "-CURRENT"; then
if echo "${CURRENT_VERSION}" | grep -oq "\-CURRENT"; then
FREEBSD_BRANCH="current"
else
FREEBSD_BRANCH="release"

View File

@@ -291,7 +291,7 @@ else
fi
fi
# Validate PKGBASE or non-PKGBASE
if echo "${TARGET}" | grep -oq "-CURRENT"; then
if echo "${NEW_RELEASE}" | grep -oq "\-CURRENT"; then
FREEBSD_BRANCH="current"
else
FREEBSD_BRANCH="release"