scripts: reloader: Unset LOG_PREFIX when testing the sourcing

pull/1761/head
Noah Gorny 2021-01-29 17:13:00 +02:00
parent 16fcb79769
commit ebc7b343be
1 changed files with 2 additions and 0 deletions

View File

@ -23,8 +23,10 @@ _bash-it-load-sources() {
_log_debug "Loading component..."
output=$(
set -e
BASH_IT_LOG_PREFIX=""
# shellcheck disable=SC1090
(source "$current") 2>&1
BASH_IT_LOG_PREFIX="$extension: $filename: "
)
retval=$?
set +e