Update no plugin installed error message (#818)

This commit is contained in:
Aaron Jensen 2020-12-20 18:00:09 -06:00 committed by GitHub
parent 2c1301dfd2
commit d2b7e2fceb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

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

View File

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