From 05432b45df48165d28bc9f7db0abcfb9f48f2e10 Mon Sep 17 00:00:00 2001 From: tschettervictor Date: Wed, 29 Oct 2025 08:39:33 -0600 Subject: [PATCH] fix \ --- usr/local/share/bastille/update.sh | 2 +- usr/local/share/bastille/upgrade.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/local/share/bastille/update.sh b/usr/local/share/bastille/update.sh index 5ba4efa9..dc4d3ea7 100644 --- a/usr/local/share/bastille/update.sh +++ b/usr/local/share/bastille/update.sh @@ -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" diff --git a/usr/local/share/bastille/upgrade.sh b/usr/local/share/bastille/upgrade.sh index 97b774e2..4850f1c4 100644 --- a/usr/local/share/bastille/upgrade.sh +++ b/usr/local/share/bastille/upgrade.sh @@ -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"