diff --git a/libexec/goenv-commands b/libexec/goenv-commands index 3a645cb4..79e8141f 100755 --- a/libexec/goenv-commands +++ b/libexec/goenv-commands @@ -25,17 +25,17 @@ IFS=: paths=($PATH) shopt -s nullglob { - for path in "${paths[@]}"; do - # goenv-init uses --sh, don't output special commands then - if [ -z "$sh" ]; then - # Output special commands (plugins and version identifiers) - echo install - echo latest - echo system - echo uninstall - goenv-versions --bare - fi + # goenv-init uses --sh, don't output special commands then + if [ -z "$sh" ]; then + # Output special commands (plugins and version identifiers) + echo install + echo latest + echo system + echo uninstall + goenv-versions --bare + fi + for path in "${paths[@]}"; do for command in "${path}/goenv-"*; do command="${command##*goenv-}" if [ -n "$sh" ]; then