main: lint false positive
parent
b6d54b458b
commit
a76731dad3
|
|
@ -114,6 +114,7 @@ for _bash_it_config_file in $CUSTOM; do
|
||||||
if [ -e "${_bash_it_config_file}" ]; then
|
if [ -e "${_bash_it_config_file}" ]; then
|
||||||
filename=$(basename "${_bash_it_config_file}")
|
filename=$(basename "${_bash_it_config_file}")
|
||||||
filename=${filename%*.bash}
|
filename=${filename%*.bash}
|
||||||
|
# shellcheck disable=SC2034
|
||||||
BASH_IT_LOG_PREFIX="custom: $filename: "
|
BASH_IT_LOG_PREFIX="custom: $filename: "
|
||||||
_log_debug "Loading custom file..."
|
_log_debug "Loading custom file..."
|
||||||
# shellcheck disable=SC1090
|
# shellcheck disable=SC1090
|
||||||
|
|
@ -122,7 +123,7 @@ for _bash_it_config_file in $CUSTOM; do
|
||||||
done
|
done
|
||||||
|
|
||||||
unset _bash_it_config_file
|
unset _bash_it_config_file
|
||||||
if [[ "${PROMPT:-}" ]]; then
|
if [[ -n "${PROMPT:-}" ]]; then
|
||||||
export PS1="\[""$PROMPT""\]"
|
export PS1="\[""$PROMPT""\]"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -18,4 +18,4 @@ for file in "$@"; do
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
exit $exit_code
|
exit "${exit_code:-0}"
|
||||||
|
|
|
||||||
|
|
@ -18,4 +18,4 @@ for file in "$@"; do
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
exit $exit_code
|
exit "${exit_code:-0}"
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@ function _set-prefix-based-on-path()
|
||||||
{
|
{
|
||||||
filename=$(_bash-it-get-component-name-from-path "$1")
|
filename=$(_bash-it-get-component-name-from-path "$1")
|
||||||
extension=$(_bash-it-get-component-type-from-path "$1")
|
extension=$(_bash-it-get-component-type-from-path "$1")
|
||||||
|
# shellcheck disable=SC2034
|
||||||
BASH_IT_LOG_PREFIX="$extension: $filename: "
|
BASH_IT_LOG_PREFIX="$extension: $filename: "
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -15,7 +16,7 @@ if [[ "$1" != "skip" ]] && [[ -d "$BASH_IT/enabled" ]]; then
|
||||||
alias|completion|plugin)
|
alias|completion|plugin)
|
||||||
_bash_it_config_type=$1
|
_bash_it_config_type=$1
|
||||||
_log_debug "Loading enabled $1 components..." ;;
|
_log_debug "Loading enabled $1 components..." ;;
|
||||||
*|'')
|
''|*)
|
||||||
_log_debug "Loading all enabled components..." ;;
|
_log_debug "Loading all enabled components..." ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue