From 64968b51d163bad73a702deb09ff5e42865d03d6 Mon Sep 17 00:00:00 2001 From: tschettervictor <85497460+tschettervictor@users.noreply.github.com> Date: Thu, 15 May 2025 08:20:00 -0600 Subject: [PATCH] =?UTF-8?q?upgrade:=20=E2=80=9Cnot=20set=E2=80=9D=20=3D=20?= =?UTF-8?q?=E2=80=9Cno=20release=E2=80=9D=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- usr/local/share/bastille/upgrade.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/local/share/bastille/upgrade.sh b/usr/local/share/bastille/upgrade.sh index d2e77f38..165e936d 100644 --- a/usr/local/share/bastille/upgrade.sh +++ b/usr/local/share/bastille/upgrade.sh @@ -164,7 +164,7 @@ jail_upgrade() { # Upgrade a thin jail if grep -qw "${bastille_jailsdir}/${_jailname}/root/.bastille" "${bastille_jailsdir}/${_jailname}/fstab"; then - if [ -z "${_oldrelease}" ]; then + if [ "${_oldrelease}" = "not set" ]; then _oldrelease="$(grep "${bastille_releasesdir}.*\.bastille.*nullfs.*" "${bastille_jailsdir}/${_jailname}/fstab" | awk -F"/releases/" '{print $2}' | awk '{print $1}')" fi local _newrelease="${NEWRELEASE}"