Fix arguments for sourced script (#147)

This commit is contained in:
Bao 2023-12-08 03:13:11 -06:00 committed by GitHub
parent 68464b7655
commit 8b96a704cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,5 +22,7 @@ __BASHIO_LIB_DIR=$(dirname "${__BASHIO_BIN}")
source "${__BASHIO_LIB_DIR}/bashio.sh"
# Execute source
BASH_ARGV0=${1:?script to source must be provided}
shift
# shellcheck source=/dev/null
source "$@"
source "$0" "$@"