mirror of
https://github.com/asdf-vm/asdf.git
synced 2024-11-15 01:28:17 -07:00
grep for plugin_name from begining of line
This commit is contained in:
parent
8794210b8e
commit
77ce346578
@ -214,7 +214,7 @@ parse_asdf_version_file() {
|
||||
|
||||
if [ -f "$file_path" ]; then
|
||||
local version
|
||||
version=$(grep "${plugin_name} " "$file_path" | sed -e "s/^${plugin_name} //")
|
||||
version=$(grep "^${plugin_name} " "$file_path" | sed -e "s/^${plugin_name} //")
|
||||
if [ -n "$version" ]; then
|
||||
echo "$version"
|
||||
return 0
|
||||
|
Loading…
Reference in New Issue
Block a user