mirror of
https://github.com/asdf-vm/asdf.git
synced 2024-11-15 01:28:17 -07:00
Fixed config file parsing to handle "=" in value field.
This commit is contained in:
parent
06d469ec4a
commit
afd6224298
@ -357,7 +357,7 @@ get_asdf_config_value_from_file() {
|
||||
fi
|
||||
|
||||
local result
|
||||
result=$(grep -E "^\\s*$key\\s*=\\s*" "$config_path" | head | awk -F '=' '{print $2}' | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//')
|
||||
result=$(grep -E "^\\s*$key\\s*=\\s*" "$config_path" | head | sed -e 's/^[^=]*= *//' -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//')
|
||||
if [ -n "$result" ]; then
|
||||
printf "%s\\n" "$result"
|
||||
return 0
|
||||
|
Loading…
Reference in New Issue
Block a user