Skip to content

Commit

Permalink
Fix arguments for sourced script (#147)
Browse files Browse the repository at this point in the history
  • Loading branch information
baodrate authored Dec 8, 2023
1 parent 68464b7 commit 8b96a70
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/bashio
Original file line number Diff line number Diff line change
Expand Up @@ -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" "$@"

0 comments on commit 8b96a70

Please sign in to comment.