ci: add ShellCheck directives to find sourced files (#1571)

This commit is contained in:
Edwin Kofler 2023-06-04 19:48:30 -07:00 committed by GitHub
parent d6185a2120
commit 297c37672a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -95,11 +95,13 @@ asdf_cmd() {
exec "$ASDF_CMD_FILE" "${@:${args_offset}}"
elif [ -f "$ASDF_CMD_FILE" ]; then
set -- "${@:${args_offset}}"
# shellcheck source=/dev/null
. "$ASDF_CMD_FILE"
else
local asdf_cmd_dir
asdf_cmd_dir="$(asdf_dir)/lib/commands"
printf "%s\n" "Unknown command: \`asdf ${*}\`" >&2
# shellcheck source=lib/commands/command-help.bash
. "$asdf_cmd_dir/command-help.bash" >&2
return 127
fi