From cd4f9ee22e69948852ff26fe454b3e22f63ee2d3 Mon Sep 17 00:00:00 2001 From: Christer Edwards Date: Fri, 22 Nov 2019 22:06:50 -0700 Subject: [PATCH] updating Usage output and standardizing target variable --- usr/local/share/bastille/upgrade.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/usr/local/share/bastille/upgrade.sh b/usr/local/share/bastille/upgrade.sh index 4833261e..ef44c4d6 100644 --- a/usr/local/share/bastille/upgrade.sh +++ b/usr/local/share/bastille/upgrade.sh @@ -47,8 +47,9 @@ if [ $# -gt 2 ] || [ $# -lt 2 ]; then usage fi -RELEASE=$1 -NEWRELEASE=$2 +RELEASE="$1" +shift +NEWRELEASE="$1" if [ ! -z "$(freebsd-version | grep -i HBSD)" ]; then echo -e "${COLOR_RED}Not yet supported on HardenedBSD.${COLOR_RESET}" @@ -57,7 +58,7 @@ fi if [ -d "${bastille_releasesdir}/${RELEASE}" ]; then - freebsd-update -b "${bastille_releasesdir}/${RELEASE}" -r ${NEWRELEASE} upgrade + freebsd-update -b "${bastille_releasesdir}/${RELEASE}" -r "${NEWRELEASE}" upgrade else echo -e "${COLOR_RED}${RELEASE} not found. See bootstrap.${COLOR_RESET}" exit 1