chore(asdf): Change logic for checking version

This commit is contained in:
Roeniss Moon 2025-04-02 00:35:03 +09:00
commit 6ed551d0ad
No known key found for this signature in database
GPG key ID: 9E9AE088DBD537FB

View file

@ -1,7 +1,7 @@
(( ! $+commands[asdf] )) && return (( ! $+commands[asdf] )) && return
# TODO(roeniss): 2025-03-31 - remove this warning and related README section after enough grace period. # TODO(roeniss): 2025-03-31 - remove this warning and related README section after enough grace period.
if [[ -d "$HOME/.asdf" ]]; then if ! asdf --version 2>/dev/null | grep -q "asdf version"; then
echo "[omz] You have enabled asdf plugin, but your asdf version seems too low. Please upgrade to at least 0.16.0 to use completion. See omz asdf plugin README for more details." echo "[omz] You have enabled asdf plugin, but your asdf version seems too low. Please upgrade to at least 0.16.0 to use completion. See omz asdf plugin README for more details."
fi fi