Skip to content

Commit

Permalink
fix null check again
Browse files Browse the repository at this point in the history
Signed-off-by: conanoc <[email protected]>
  • Loading branch information
conanoc committed Feb 23, 2024
1 parent fd51c43 commit b5f7845
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ariesframework/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ dependencies {

ext["githubUsername"] = null
ext["githubToken"] = null
ext["version"] = "2.0.0"
ext["version"] = null

def secretPropsFile = project.rootProject.file("local.properties")
if (secretPropsFile.exists()) {
Expand All @@ -83,7 +83,11 @@ if (secretPropsFile.exists()) {
ext["version"] = System.getenv("VERSION")
}

ext["version"] = ext["version"]?.replaceFirst("v", "")
if (ext["version"] != null) {
ext["version"] = ext["version"].replaceFirst("v", "")
} else {
ext["version"] = "2.0.0"
}

def getExtraString(name) {
try {
Expand Down

0 comments on commit b5f7845

Please sign in to comment.