mirror of
https://github.com/asdf-vm/asdf.git
synced 2024-11-15 01:28:17 -07:00
fix: plugin test to emit error message when latest
fails (#772)
Fix #756
This commit is contained in:
parent
f09532478b
commit
1a01356935
@ -110,6 +110,9 @@ plugin_test_command() {
|
||||
# version from the versions list
|
||||
if [ -z "$tool_version" ] || [[ "$tool_version" == *"latest"* ]]; then
|
||||
version="$(asdf latest "$plugin_name" "$(echo "$tool_version" | sed -e 's#latest##;s#^:##')")"
|
||||
if [ -z "$tool_version" ]; then
|
||||
fail_test "could not get latest version"
|
||||
fi
|
||||
else
|
||||
version="$tool_version"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user