From 297c37672a4456347b098cded9b25d594318ef40 Mon Sep 17 00:00:00 2001 From: Edwin Kofler Date: Sun, 4 Jun 2023 19:48:30 -0700 Subject: [PATCH] ci: add ShellCheck directives to find sourced files (#1571) --- bin/asdf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/asdf b/bin/asdf index f2614259..452f2487 100755 --- a/bin/asdf +++ b/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