Invert boolean condition

This commit is contained in:
Jonathan Beverly (jrbeverly) 2022-06-03 22:43:58 -04:00 committed by GitHub
parent 7e0c390cfe
commit a3f251477b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -401,7 +401,7 @@ initialize_or_update_repository() {
local repository_path
repository_url="$(get_asdf_config_value "asdf_repository_url")"
if [ ! -z "$repository_url" ]; then
if [ -z "$repository_url" ]; then
printf "No short-name plugin repository in configuration\\n" >&2
exit 1
fi