From 4f82da80c0895ec06cec1efd128a261c664f1537 Mon Sep 17 00:00:00 2001 From: Cole Kettler Date: Tue, 17 Aug 2021 08:19:07 -0400 Subject: [PATCH] Use double quotes consistently for shell conditional clauses --- scripts/cibuild | 6 +++--- scripts/test | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/scripts/cibuild b/scripts/cibuild index 334b1cd3cc..28943012e9 100755 --- a/scripts/cibuild +++ b/scripts/cibuild @@ -2,7 +2,7 @@ set -e -if [[ -n ${RASTER_VISION_DEBUG} ]]; then +if [[ -n "${RASTER_VISION_DEBUG}" ]]; then set -x fi @@ -13,8 +13,8 @@ Build library for integration or a release. " } -if [[ ${BASH_SOURCE[0]} == "$0" ]]; then - if [[ ${1:-} == "--help" ]]; then +if [[ "${BASH_SOURCE[0]}" == "$0" ]]; then + if [[ "${1:-}" == "--help" ]]; then usage else docker build \ diff --git a/scripts/test b/scripts/test index c237851de3..9e661f931a 100755 --- a/scripts/test +++ b/scripts/test @@ -2,7 +2,7 @@ set -e -if [[ -n ${RASTER_VISION_DEBUG} ]]; then +if [[ -n "${RASTER_VISION_DEBUG}" ]]; then set -x fi @@ -13,11 +13,11 @@ Run linters and tests. " } -if [[ ${BASH_SOURCE[0]} == "${0}" ]]; then - if [[ ${1:-} == "--help" ]]; then +if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then + if [[ "${1:-}" == "--help" ]]; then usage else - if [[ -n ${CI} ]]; then + if [[ -n "${CI}" ]]; then # Execute test suites docker run \ --rm -t \