Merge pull request #416 from asdf-vm/fix-shellcheck-warnings

Fix shellcheck warnings on OSX
This commit is contained in:
Trevor Brown 2018-12-21 17:34:37 -05:00 committed by GitHub
commit fcf5f3653c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

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

View File

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