main: lint false positive

pull/1947/head
John D Pell 2021-09-14 15:05:43 -07:00
parent b6d54b458b
commit a76731dad3
4 changed files with 6 additions and 4 deletions

View File

@ -114,6 +114,7 @@ for _bash_it_config_file in $CUSTOM; do
if [ -e "${_bash_it_config_file}" ]; then
filename=$(basename "${_bash_it_config_file}")
filename=${filename%*.bash}
# shellcheck disable=SC2034
BASH_IT_LOG_PREFIX="custom: $filename: "
_log_debug "Loading custom file..."
# shellcheck disable=SC1090
@ -122,7 +123,7 @@ for _bash_it_config_file in $CUSTOM; do
done
unset _bash_it_config_file
if [[ "${PROMPT:-}" ]]; then
if [[ -n "${PROMPT:-}" ]]; then
export PS1="\[""$PROMPT""\]"
fi

View File

@ -18,4 +18,4 @@ for file in "$@"; do
fi
done
exit $exit_code
exit "${exit_code:-0}"

View File

@ -18,4 +18,4 @@ for file in "$@"; do
fi
done
exit $exit_code
exit "${exit_code:-0}"

3
scripts/reloader.bash 100644 → 100755
View File

@ -5,6 +5,7 @@ function _set-prefix-based-on-path()
{
filename=$(_bash-it-get-component-name-from-path "$1")
extension=$(_bash-it-get-component-type-from-path "$1")
# shellcheck disable=SC2034
BASH_IT_LOG_PREFIX="$extension: $filename: "
}
@ -15,7 +16,7 @@ if [[ "$1" != "skip" ]] && [[ -d "$BASH_IT/enabled" ]]; then
alias|completion|plugin)
_bash_it_config_type=$1
_log_debug "Loading enabled $1 components..." ;;
*|'')
''|*)
_log_debug "Loading all enabled components..." ;;
esac