From e01732ee463e9835bf02aca37f273c33d5613df0 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Mon, 31 Jul 2023 19:59:18 +0100 Subject: [PATCH] build.sh: fix shellcheck suggestions --- build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index 62a041b..e10ec6d 100755 --- a/build.sh +++ b/build.sh @@ -4,7 +4,7 @@ set -e; # current_branch="$(git rev-parse --abbrev-ref HEAD)"; is_main="$(git branch --contains HEAD | awk '/HEAD/ { next } /dev/ { print $1 }')"; -if [[ "${1}" == "ci" ]] && [[ ! -z "${is_main}" ]]; then +if [[ "${1}" == "ci" ]] && [[ -n "${is_main}" ]]; then echo "Skipping build, because this commit does not appear to be on the 'dev' branch, and we only deploy commits on the 'main' branch."; fi @@ -108,7 +108,7 @@ fi # ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ # ██ ██ ██ ██ ██████ ██ ██ ██ ████ ███████ -if [[ ! -z "${ARCHIVE}" ]]; then +if [[ -n "${ARCHIVE}" ]]; then log_msg "Archiving content"; check_command tar; check_command gzip;