Skip to content

Commit 3f59dbf

Browse files
committed
ignore commented .env lines in android
eg:
1 parent 2e0a9ec commit 3f59dbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

android/dotenv.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ def readDotEnv = {
44
println("Reading env from: $envFile")
55
new File("$project.rootDir/../$envFile").eachLine { line ->
66
def (key, val) = line.tokenize('=')
7-
if (key && val) {
7+
if (key && val && key.substring(0, 1) != "#") {
88
env.put(key, val)
99
}
1010
}

0 commit comments

Comments
 (0)