fix: local plugin in then clause too (#1203)

Co-authored-by: Kazuhiro NISHIYAMA <znz@users.noreply.github.com>
This commit is contained in:
Trevor Brown 2022-04-14 11:10:17 -04:00 committed by GitHub
parent de6e22f909
commit 448f750891
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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