mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 12:11:56 +00:00
fix: allow (multiple) equal signs in env filehelper values (#3090)
This commit is contained in:
@@ -623,7 +623,10 @@ export class FileHelper<A> {
|
||||
.split("\n")
|
||||
.map((line) => line.trim())
|
||||
.filter((line) => !line.startsWith("#") && line.includes("="))
|
||||
.map((line) => line.split("=", 2)),
|
||||
.map((line) => {
|
||||
const pos = line.indexOf("=")
|
||||
return [line.slice(0, pos), line.slice(pos + 1)]
|
||||
}),
|
||||
),
|
||||
(data) => shape.unsafeCast(data),
|
||||
transformers,
|
||||
|
||||
Reference in New Issue
Block a user