From 448f750891a4366f45d905b112ad20d4be66c496 Mon Sep 17 00:00:00 2001 From: Trevor Brown Date: Thu, 14 Apr 2022 11:10:17 -0400 Subject: [PATCH] fix: local plugin in then clause too (#1203) Co-authored-by: Kazuhiro NISHIYAMA --- lib/commands/command-current.bash | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/commands/command-current.bash b/lib/commands/command-current.bash index 826fa4b23..2200afea4 100644 --- a/lib/commands/command-current.bash +++ b/lib/commands/command-current.bash @@ -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