Skip to content

Commit

Permalink
Fix SC2021 of shellcheck
Browse files Browse the repository at this point in the history
SC2021: Don't use [] around ranges in tr, it replaces literal square brackets.
  • Loading branch information
znz committed May 8, 2016
1 parent b5b4b82 commit e091c94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/anyenv-git
Expand Up @@ -35,7 +35,7 @@ anyenv_git anyenv "$@"
anyenv_git_plugins "$@"

for env in $(anyenv envs); do
ENV_ROOT_VALUE=$(echo "${env}_ROOT" | tr "[a-z]" "[A-Z]")
ENV_ROOT_VALUE=$(echo "${env}_ROOT" | tr "[:lower:]" "[:upper:]")
eval cd "\${${ENV_ROOT_VALUE}:-\$($env root)}"
anyenv_git "$env" "$@"
anyenv_git_plugins "$@"
Expand Down

0 comments on commit e091c94

Please sign in to comment.