diff --git a/teller-providers/src/providers/dotenv.rs b/teller-providers/src/providers/dotenv.rs index 0f8cf385..eb7ef1f6 100644 --- a/teller-providers/src/providers/dotenv.rs +++ b/teller-providers/src/providers/dotenv.rs @@ -110,7 +110,7 @@ fn save(path: &Path, data: &BTreeMap) -> Result { }; let value = json_value.unwrap_or_else(|| v.to_string()); - if value.chars().any(char::is_whitespace) { + if value.chars().any(char::is_whitespace) && !value.starts_with(['"', '\'']) { out.push_str(&format!("{k}=\"{value}\"\n")); } else { out.push_str(&format!("{k}={value}\n"));