Skip to content

Commit

Permalink
ci: add ShellCheck directives to find sourced files (#1571)
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperupcall authored Jun 5, 2023
1 parent d6185a2 commit 297c376
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/asdf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 297c376

Please sign in to comment.