From adaea3beccdfdddba39d47e7704de62a885dc6ca Mon Sep 17 00:00:00 2001 From: Landon Curt Noll Date: Fri, 8 Mar 2024 16:07:41 -0800 Subject: [PATCH] fix minor shellcheck issue Fixed minor shellcheck issue with gen-authors.sh, gen-location.sh, output-index-author.sh --- bin/gen-authors.sh | 2 +- bin/gen-location.sh | 2 +- bin/output-index-author.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/gen-authors.sh b/bin/gen-authors.sh index b7fd235a3..716253791 100755 --- a/bin/gen-authors.sh +++ b/bin/gen-authors.sh @@ -844,7 +844,7 @@ EOF # echo "

**$FULL_NAME**
" echo "author_handle: $AUTHOR_HANDLE
" - if [[ $LOCATION_NAME == $LOCATION_COMMON_NAME ]]; then + if [[ $LOCATION_NAME == "$LOCATION_COMMON_NAME" ]]; then echo "Location: [$LOCATION_CODE](location.html#$LOCATION_CODE) -" \ "_${LOCATION_NAME}_

" else diff --git a/bin/gen-location.sh b/bin/gen-location.sh index d90c9ccd2..8f6d4e645 100755 --- a/bin/gen-location.sh +++ b/bin/gen-location.sh @@ -457,7 +457,7 @@ fi # output markdown entry for this location # - if [[ $LOCATION_NAME == $LOCATION_COMMON_NAME ]]; then + if [[ $LOCATION_NAME == "$LOCATION_COMMON_NAME" ]]; then echo "* **$LOCATION_CODE** - _${LOCATION_NAME}_" else echo "* **$LOCATION_CODE** - _${LOCATION_NAME}_ (_${LOCATION_COMMON_NAME}_)" diff --git a/bin/output-index-author.sh b/bin/output-index-author.sh index 84762129c..145ad5be3 100755 --- a/bin/output-index-author.sh +++ b/bin/output-index-author.sh @@ -786,7 +786,7 @@ for author_handle in $AUTHOR_HANDLE_SET; do if [[ $LOCATION_CODE == null ]]; then echo "Location: [unknown](${DOCROOT_SLASH}location.html#$LOCATION_CODE) - _${LOCATION_NAME}_" else - if [[ $LOCATION_NAME == $LOCATION_COMMON_NAME ]]; then + if [[ $LOCATION_NAME == "$LOCATION_COMMON_NAME" ]]; then echo "Location: [$LOCATION_CODE](${DOCROOT_SLASH}location.html#$LOCATION_CODE) -" \ "_${LOCATION_NAME}_" else