Replaced contains with match in powershell (contains does not work for strings)
This commit is contained in:
1 parent
90d4b35741
commit
8d6ddf6d26
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user