diff --git a/lib/commands/current.sh b/lib/commands/current.sh index 7fdb47b1..7cf26c95 100644 --- a/lib/commands/current.sh +++ b/lib/commands/current.sh @@ -1,5 +1,3 @@ -#!/usr/bin/env bash - plugin_current_command() { local plugin_name=$1 diff --git a/lib/commands/help.sh b/lib/commands/help.sh index 9c7cf2c5..d8077e35 100644 --- a/lib/commands/help.sh +++ b/lib/commands/help.sh @@ -1,5 +1,3 @@ -#!/usr/bin/env bash - help_command () { echo "version: $(asdf_version)" echo "" diff --git a/lib/commands/install.sh b/lib/commands/install.sh index 04537669..9ea36f66 100644 --- a/lib/commands/install.sh +++ b/lib/commands/install.sh @@ -1,5 +1,3 @@ -#!/usr/bin/env bash - handle_failure() { local install_path="$1" rm -rf "$install_path" diff --git a/lib/commands/list-all.sh b/lib/commands/list-all.sh index 5f14d752..1c252618 100644 --- a/lib/commands/list-all.sh +++ b/lib/commands/list-all.sh @@ -1,5 +1,3 @@ -#!/usr/bin/env bash - list_all_command() { local plugin_name=$1 local plugin_path diff --git a/lib/commands/list.sh b/lib/commands/list.sh index b2fd2c2a..58a51472 100644 --- a/lib/commands/list.sh +++ b/lib/commands/list.sh @@ -1,5 +1,3 @@ -#!/usr/bin/env bash - list_command() { local plugin_name=$1 check_if_plugin_exists "$plugin_name" diff --git a/lib/commands/plugin-add.sh b/lib/commands/plugin-add.sh index ad56b963..ffb75257 100644 --- a/lib/commands/plugin-add.sh +++ b/lib/commands/plugin-add.sh @@ -1,5 +1,3 @@ -#!/usr/bin/env bash - plugin_add_command() { if [[ $# -lt 1 || $# -gt 2 ]]; then display_error "usage: asdf plugin-add []" diff --git a/lib/commands/plugin-list-all.sh b/lib/commands/plugin-list-all.sh index 19297de8..789c2235 100644 --- a/lib/commands/plugin-list-all.sh +++ b/lib/commands/plugin-list-all.sh @@ -1,5 +1,3 @@ -#!/usr/bin/env bash - plugin_list_all_command() { initialize_or_update_repository diff --git a/lib/commands/plugin-list.sh b/lib/commands/plugin-list.sh index b0c4ce3e..70705b91 100644 --- a/lib/commands/plugin-list.sh +++ b/lib/commands/plugin-list.sh @@ -1,5 +1,3 @@ -#!/usr/bin/env bash - plugin_list_command() { local plugins_path plugins_path=$(get_plugin_path) diff --git a/lib/commands/plugin-push.sh b/lib/commands/plugin-push.sh index 9e6a13db..2cd9b184 100644 --- a/lib/commands/plugin-push.sh +++ b/lib/commands/plugin-push.sh @@ -1,5 +1,3 @@ -#!/usr/bin/env bash - plugin_push_command() { local plugin_name=$1 if [ "$plugin_name" = "--all" ]; then diff --git a/lib/commands/plugin-remove.sh b/lib/commands/plugin-remove.sh index d545720e..14a6c421 100644 --- a/lib/commands/plugin-remove.sh +++ b/lib/commands/plugin-remove.sh @@ -1,5 +1,3 @@ -#!/usr/bin/env bash - plugin_remove_command() { local plugin_name=$1 check_if_plugin_exists "$plugin_name" diff --git a/lib/commands/plugin-test.sh b/lib/commands/plugin-test.sh index 142821a2..d1ddc0bc 100644 --- a/lib/commands/plugin-test.sh +++ b/lib/commands/plugin-test.sh @@ -1,5 +1,3 @@ -#!/usr/bin/env bash - fail_test() { echo "FAILED: $1" rm -rf "$ASDF_DIR" diff --git a/lib/commands/plugin-update.sh b/lib/commands/plugin-update.sh index d3310b11..8f2b4c08 100644 --- a/lib/commands/plugin-update.sh +++ b/lib/commands/plugin-update.sh @@ -1,5 +1,3 @@ -#!/usr/bin/env bash - plugin_update_command() { if [ "$#" -ne 1 ]; then display_error "usage: asdf plugin-update { | --all}" diff --git a/lib/commands/reshim.sh b/lib/commands/reshim.sh index edd980e3..b2f08741 100644 --- a/lib/commands/reshim.sh +++ b/lib/commands/reshim.sh @@ -1,5 +1,3 @@ -#!/usr/bin/env bash - shim_command() { local plugin_name=$1 local executable_path=$2 diff --git a/lib/commands/uninstall.sh b/lib/commands/uninstall.sh index 3527ef16..8a8928e3 100644 --- a/lib/commands/uninstall.sh +++ b/lib/commands/uninstall.sh @@ -1,5 +1,3 @@ -#!/usr/bin/env bash - uninstall_command() { local plugin_name=$1 local full_version=$2 diff --git a/lib/commands/update.sh b/lib/commands/update.sh index 44bb3752..082018e0 100644 --- a/lib/commands/update.sh +++ b/lib/commands/update.sh @@ -1,5 +1,3 @@ -#!/usr/bin/env bash - update_command() { local update_to_head=$1 diff --git a/lib/commands/version_commands.sh b/lib/commands/version_commands.sh index 7c1d25e6..d64b4a70 100644 --- a/lib/commands/version_commands.sh +++ b/lib/commands/version_commands.sh @@ -1,5 +1,3 @@ -#!/usr/bin/env bash - version_command() { local cmd=$1 local plugin=$2 diff --git a/lib/commands/where.sh b/lib/commands/where.sh index 4aae35b3..1286f1d6 100644 --- a/lib/commands/where.sh +++ b/lib/commands/where.sh @@ -1,5 +1,3 @@ -#!/usr/bin/env bash - where_command() { local plugin_name=$1 local full_version=$2 diff --git a/lib/commands/which.sh b/lib/commands/which.sh index d953c61d..1fa46565 100644 --- a/lib/commands/which.sh +++ b/lib/commands/which.sh @@ -1,5 +1,3 @@ -#!/usr/bin/env bash - current_version() { local plugin_name=$1 diff --git a/lib/utils.sh b/lib/utils.sh index 5bb87575..2eeba7ef 100644 --- a/lib/utils.sh +++ b/lib/utils.sh @@ -1,5 +1,3 @@ -#!/usr/bin/env bash - # We shouldn't rely on the user's grep settings to be correct. If we set these # here anytime asdf invokes grep it will be invoked with these options # shellcheck disable=SC2034 diff --git a/lint.sh b/lint.sh index 1ed66432..43586167 100755 --- a/lint.sh +++ b/lint.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -exec shellcheck -x \ +exec shellcheck -s bash -x \ asdf.sh lint.sh release.sh \ bin/asdf bin/private/asdf-exec \ lib/utils.sh lib/commands/*.sh \