Skip to content

Commit

Permalink
OSHA environment safety
Browse files Browse the repository at this point in the history
  • Loading branch information
cakeGit committed Sep 24, 2024
1 parent 623e663 commit 3cae407
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,12 @@ allprojects {

publishMods {
def TOKENS = new HashMap<String, String>();
file("$projectDir/.env").readLines().each() {
def (key, value) = it.tokenize('=')
TOKENS.put(key, value)
}
def envFile = file("$projectDir/.env");
if (envFile.exists())
envFile.readLines().each() {
def (key, value) = it.tokenize('=')
TOKENS.put(key, value)
}

def cfg = new Yaml().load(new File("$projectDir/changelog.yaml").newInputStream())
def changelogText = cfg[minecraft_version + "-" + mod_version];
Expand Down

0 comments on commit 3cae407

Please sign in to comment.