Skip to content

Commit 8b96a70

Browse files
authored
Fix arguments for sourced script (#147)
1 parent 68464b7 commit 8b96a70

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

lib/bashio

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,7 @@ __BASHIO_LIB_DIR=$(dirname "${__BASHIO_BIN}")
2222
source "${__BASHIO_LIB_DIR}/bashio.sh"
2323

2424
# Execute source
25+
BASH_ARGV0=${1:?script to source must be provided}
26+
shift
2527
# shellcheck source=/dev/null
26-
source "$@"
28+
source "$0" "$@"

0 commit comments

Comments
 (0)