mirror of
https://github.com/asdf-vm/asdf.git
synced 2024-11-15 01:28:17 -07:00
Remove shebangs from lib files and pass bash dialect to shellcheck
This commit is contained in:
parent
32b2690874
commit
20b70bccc7
@ -1,5 +1,3 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
plugin_current_command() {
|
||||
local plugin_name=$1
|
||||
|
||||
|
@ -1,5 +1,3 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
help_command () {
|
||||
echo "version: $(asdf_version)"
|
||||
echo ""
|
||||
|
@ -1,5 +1,3 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
handle_failure() {
|
||||
local install_path="$1"
|
||||
rm -rf "$install_path"
|
||||
|
@ -1,5 +1,3 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
list_all_command() {
|
||||
local plugin_name=$1
|
||||
local plugin_path
|
||||
|
@ -1,5 +1,3 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
list_command() {
|
||||
local plugin_name=$1
|
||||
check_if_plugin_exists "$plugin_name"
|
||||
|
@ -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>]"
|
||||
|
@ -1,5 +1,3 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
plugin_list_all_command() {
|
||||
initialize_or_update_repository
|
||||
|
||||
|
@ -1,5 +1,3 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
plugin_list_command() {
|
||||
local plugins_path
|
||||
plugins_path=$(get_plugin_path)
|
||||
|
@ -1,5 +1,3 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
plugin_push_command() {
|
||||
local plugin_name=$1
|
||||
if [ "$plugin_name" = "--all" ]; then
|
||||
|
@ -1,5 +1,3 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
plugin_remove_command() {
|
||||
local plugin_name=$1
|
||||
check_if_plugin_exists "$plugin_name"
|
||||
|
@ -1,5 +1,3 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
fail_test() {
|
||||
echo "FAILED: $1"
|
||||
rm -rf "$ASDF_DIR"
|
||||
|
@ -1,5 +1,3 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
plugin_update_command() {
|
||||
if [ "$#" -ne 1 ]; then
|
||||
display_error "usage: asdf plugin-update {<name> | --all}"
|
||||
|
@ -1,5 +1,3 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
shim_command() {
|
||||
local plugin_name=$1
|
||||
local executable_path=$2
|
||||
|
@ -1,5 +1,3 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
uninstall_command() {
|
||||
local plugin_name=$1
|
||||
local full_version=$2
|
||||
|
@ -1,5 +1,3 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
update_command() {
|
||||
local update_to_head=$1
|
||||
|
||||
|
@ -1,5 +1,3 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
version_command() {
|
||||
local cmd=$1
|
||||
local plugin=$2
|
||||
|
@ -1,5 +1,3 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
where_command() {
|
||||
local plugin_name=$1
|
||||
local full_version=$2
|
||||
|
@ -1,5 +1,3 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
current_version() {
|
||||
local plugin_name=$1
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user