diff --git a/lib/utils.bash b/lib/utils.bash index 91c06c51..df0c9430 100644 --- a/lib/utils.bash +++ b/lib/utils.bash @@ -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