mirror of
https://github.com/asdf-vm/asdf.git
synced 2024-11-15 09:38:16 -07:00
Merge pull request #416 from asdf-vm/fix-shellcheck-warnings
Fix shellcheck warnings on OSX
This commit is contained in:
commit
fcf5f3653c
@ -13,7 +13,7 @@ plugin_current_command() {
|
|||||||
version_file_path=$(cut -d '|' -f 2 <<< "$version_and_path");
|
version_file_path=$(cut -d '|' -f 2 <<< "$version_and_path");
|
||||||
|
|
||||||
IFS=' ' read -r -a versions <<< "$full_version"
|
IFS=' ' read -r -a versions <<< "$full_version"
|
||||||
for version in $versions; do
|
for version in "${versions[@]}"; do
|
||||||
check_if_version_exists "$plugin_name" "$version"
|
check_if_version_exists "$plugin_name" "$version"
|
||||||
done
|
done
|
||||||
check_for_deprecated_plugin "$plugin_name"
|
check_for_deprecated_plugin "$plugin_name"
|
||||||
|
@ -26,7 +26,7 @@ asdf_repository_url() {
|
|||||||
asdf_data_dir(){
|
asdf_data_dir(){
|
||||||
local data_dir
|
local data_dir
|
||||||
|
|
||||||
if ! [ -z "${ASDF_DATA_DIR}" ]; then
|
if [ -n "${ASDF_DATA_DIR}" ]; then
|
||||||
data_dir="${ASDF_DATA_DIR}"
|
data_dir="${ASDF_DATA_DIR}"
|
||||||
else
|
else
|
||||||
data_dir="$HOME/.asdf"
|
data_dir="$HOME/.asdf"
|
||||||
|
Loading…
Reference in New Issue
Block a user