Skip to content

Commit

Permalink
Use double quotes consistently for shell conditional clauses
Browse files Browse the repository at this point in the history
  • Loading branch information
colekettler committed Aug 17, 2021
1 parent 5bc1b60 commit 4f82da8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions scripts/cibuild
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -e

if [[ -n ${RASTER_VISION_DEBUG} ]]; then
if [[ -n "${RASTER_VISION_DEBUG}" ]]; then
set -x
fi

Expand All @@ -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 \
Expand Down
8 changes: 4 additions & 4 deletions scripts/test
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -e

if [[ -n ${RASTER_VISION_DEBUG} ]]; then
if [[ -n "${RASTER_VISION_DEBUG}" ]]; then
set -x
fi

Expand All @@ -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 \
Expand Down

0 comments on commit 4f82da8

Please sign in to comment.