From d2b7e2fceb25e7f12abc7934aa925108f91589c8 Mon Sep 17 00:00:00 2001 From: Aaron Jensen Date: Sun, 20 Dec 2020 18:00:09 -0600 Subject: [PATCH] Update no plugin installed error message (#818) --- lib/commands/command-list.bash | 2 +- lib/commands/command-plugin-list.bash | 2 +- test/current_command.bats | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) mode change 100644 => 100755 test/current_command.bats diff --git a/lib/commands/command-list.bash b/lib/commands/command-list.bash index c708cef0..1d0655c0 100644 --- a/lib/commands/command-list.bash +++ b/lib/commands/command-list.bash @@ -14,7 +14,7 @@ list_command() { display_installed_versions "$plugin_name" done else - printf "%s\\n" 'Oohes nooes ~! No plugins installed' + printf "%s\\n" 'No plugins installed' fi else check_if_plugin_exists "$plugin_name" diff --git a/lib/commands/command-plugin-list.bash b/lib/commands/command-plugin-list.bash index db80b6b7..5e54e5a2 100644 --- a/lib/commands/command-plugin-list.bash +++ b/lib/commands/command-plugin-list.bash @@ -45,7 +45,7 @@ plugin_list_command() { done ) | awk '{ if (NF > 1) { printf("%-28s", $1) ; $1="" }; print $0}' else - display_error 'Oohes nooes ~! No plugins installed' + display_error 'No plugins installed' exit 1 fi } diff --git a/test/current_command.bats b/test/current_command.bats old mode 100644 new mode 100755 index bbf22860..2d1e64da --- a/test/current_command.bats +++ b/test/current_command.bats @@ -127,7 +127,7 @@ foobar 1.0.0 $PROJECT_DIR/.tool-versions" @test "with no plugins prints an error" { clean_asdf_dir - expected="Oohes nooes ~! No plugins installed" + expected="No plugins installed" run asdf current [ "$status" -eq 0 ]