Skip to content

Commit

Permalink
Quote default variable assignment for SC2223
Browse files Browse the repository at this point in the history
According to [SC2223](https://github.com/koalaman/shellcheck/wiki/SC2223), even default variable assignments following `:` need to be quoted.

Just quote everything. Bash is bad.
  • Loading branch information
gaelicWizard committed Aug 15, 2021
1 parent c6abccf commit d88f4bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bash_it.sh
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ done
# Custom
BASH_IT_LOG_PREFIX="core: main: "
_log_debug "Loading general custom files..."
: ${BASH_IT_CUSTOM:=${BASH_IT}/custom}
: "${BASH_IT_CUSTOM:=${BASH_IT}/custom}"
for _bash_it_config_file in "$BASH_IT_CUSTOM"/*.bash "$BASH_IT_CUSTOM"/**/*.bash
do
if [ -e "${_bash_it_config_file}" ]; then
Expand Down

0 comments on commit d88f4bb

Please sign in to comment.