mirror of
https://github.com/asdf-vm/asdf.git
synced 2024-11-15 01:28:17 -07:00
fix: local plugin in then clause too (#1203)
Co-authored-by: Kazuhiro NISHIYAMA <znz@users.noreply.github.com>
This commit is contained in:
parent
de6e22f909
commit
448f750891
@ -44,6 +44,7 @@ plugin_current_command() {
|
||||
current_command() {
|
||||
local terminal_format="%-15s %-15s %-10s\\n"
|
||||
local exit_status=0
|
||||
local plugin
|
||||
|
||||
# printf "$terminal_format" "PLUGIN" "VERSION" "SET BY CONFIG" # disbale this until we release headings across the board
|
||||
if [ $# -eq 0 ]; then
|
||||
@ -51,7 +52,7 @@ current_command() {
|
||||
plugin_current_command "$plugin" "$terminal_format"
|
||||
done
|
||||
else
|
||||
local plugin=$1
|
||||
plugin=$1
|
||||
plugin_current_command "$plugin" "$terminal_format"
|
||||
exit_status="$?"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user