From 3ee2af3b03fe278493250a99cc05e88440d73f3d Mon Sep 17 00:00:00 2001 From: Christer Edwards Date: Fri, 22 Nov 2019 22:06:34 -0700 Subject: [PATCH] updating variable and quoting for coding standards --- usr/local/share/bastille/update.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/usr/local/share/bastille/update.sh b/usr/local/share/bastille/update.sh index d15e7689..5f57a830 100644 --- a/usr/local/share/bastille/update.sh +++ b/usr/local/share/bastille/update.sh @@ -47,7 +47,8 @@ if [ $# -gt 1 ] || [ $# -lt 1 ]; then usage fi -RELEASE=$1 +RELEASE="${1}" +shift if [ ! -z "$(freebsd-version | grep -i HBSD)" ]; then echo -e "${COLOR_RED}Not yet supported on HardenedBSD.${COLOR_RESET}" @@ -55,7 +56,7 @@ if [ ! -z "$(freebsd-version | grep -i HBSD)" ]; then fi if [ -d "${bastille_releasesdir}/${RELEASE}" ]; then - freebsd-update -b "${bastille_releasesdir}/${RELEASE}" fetch install --currently-running ${RELEASE} + freebsd-update -b "${bastille_releasesdir}/${RELEASE}" fetch install --currently-running "${RELEASE}" else echo -e "${COLOR_RED}${RELEASE} not found. See bootstrap.${COLOR_RESET}" exit 1