Remove shebangs from lib files and pass bash dialect to shellcheck

This commit is contained in:
Jonathan Knapp 2017-10-01 11:34:35 -04:00
parent 32b2690874
commit 20b70bccc7
No known key found for this signature in database
GPG Key ID: 51330F9D3F9D368E
20 changed files with 1 additions and 39 deletions

View File

@ -1,5 +1,3 @@
#!/usr/bin/env bash
plugin_current_command() {
local plugin_name=$1

View File

@ -1,5 +1,3 @@
#!/usr/bin/env bash
help_command () {
echo "version: $(asdf_version)"
echo ""

View File

@ -1,5 +1,3 @@
#!/usr/bin/env bash
handle_failure() {
local install_path="$1"
rm -rf "$install_path"

View File

@ -1,5 +1,3 @@
#!/usr/bin/env bash
list_all_command() {
local plugin_name=$1
local plugin_path

View File

@ -1,5 +1,3 @@
#!/usr/bin/env bash
list_command() {
local plugin_name=$1
check_if_plugin_exists "$plugin_name"

View File

@ -1,5 +1,3 @@
#!/usr/bin/env bash
plugin_add_command() {
if [[ $# -lt 1 || $# -gt 2 ]]; then
display_error "usage: asdf plugin-add <name> [<git-url>]"

View File

@ -1,5 +1,3 @@
#!/usr/bin/env bash
plugin_list_all_command() {
initialize_or_update_repository

View File

@ -1,5 +1,3 @@
#!/usr/bin/env bash
plugin_list_command() {
local plugins_path
plugins_path=$(get_plugin_path)

View File

@ -1,5 +1,3 @@
#!/usr/bin/env bash
plugin_push_command() {
local plugin_name=$1
if [ "$plugin_name" = "--all" ]; then

View File

@ -1,5 +1,3 @@
#!/usr/bin/env bash
plugin_remove_command() {
local plugin_name=$1
check_if_plugin_exists "$plugin_name"

View File

@ -1,5 +1,3 @@
#!/usr/bin/env bash
fail_test() {
echo "FAILED: $1"
rm -rf "$ASDF_DIR"

View File

@ -1,5 +1,3 @@
#!/usr/bin/env bash
plugin_update_command() {
if [ "$#" -ne 1 ]; then
display_error "usage: asdf plugin-update {<name> | --all}"

View File

@ -1,5 +1,3 @@
#!/usr/bin/env bash
shim_command() {
local plugin_name=$1
local executable_path=$2

View File

@ -1,5 +1,3 @@
#!/usr/bin/env bash
uninstall_command() {
local plugin_name=$1
local full_version=$2

View File

@ -1,5 +1,3 @@
#!/usr/bin/env bash
update_command() {
local update_to_head=$1

View File

@ -1,5 +1,3 @@
#!/usr/bin/env bash
version_command() {
local cmd=$1
local plugin=$2

View File

@ -1,5 +1,3 @@
#!/usr/bin/env bash
where_command() {
local plugin_name=$1
local full_version=$2

View File

@ -1,5 +1,3 @@
#!/usr/bin/env bash
current_version() {
local plugin_name=$1

View File

@ -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

View File

@ -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 \