mirror of
https://github.com/asdf-vm/asdf.git
synced 2024-11-15 01:28:17 -07:00
ci: add ShellCheck directives to find sourced files (#1571)
This commit is contained in:
parent
d6185a2120
commit
297c37672a
2
bin/asdf
2
bin/asdf
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user