Skip to content
This repository was archived by the owner on Feb 27, 2020. It is now read-only.

Commit ba64d4c

Browse files
committed
Guard against null valued environment variable
1 parent a3de634 commit ba64d4c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

build.cake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ Task("__Pack")
103103
});
104104
});
105105

106-
var isTag = bool.Parse(EnvironmentVariable("APPVEYOR_REPO_TAG"));
106+
var isTag = bool.Parse(EnvironmentVariable("APPVEYOR_REPO_TAG") ?? "false");
107107
Task("__Publish")
108108
.WithCriteria(isTag)
109109
.WithCriteria(BuildSystem.IsRunningOnAppVeyor)

0 commit comments

Comments
 (0)