mirror of
https://github.com/asdf-vm/asdf.git
synced 2024-11-15 01:28:17 -07:00
Update no plugin installed error message (#818)
This commit is contained in:
parent
2c1301dfd2
commit
d2b7e2fceb
@ -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"
|
||||
|
@ -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
|
||||
}
|
||||
|
2
test/current_command.bats
Normal file → Executable file
2
test/current_command.bats
Normal file → Executable file
@ -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 ]
|
||||
|
Loading…
Reference in New Issue
Block a user