Replaced contains with match in powershell (contains does not work for strings)

This commit is contained in:
lukeIam committed 2017-08-14 17:55:27 +02:00
1 parent 90d4b35741
commit 8d6ddf6d26
1 file changed
+1 -1
+1 -1
View File
@@ -35,7 +35,7 @@ if(!$releaseId){
Return;
}
if($result.body -contains $Env:APPVEYOR_REPO_COMMIT){
if($result.body -match $Env:APPVEYOR_REPO_COMMIT){
# An other build already recreated the release
Write-Host "An other build already recreated the release"
Return;