From 8e13efe4db54fee17e6da67249e45b8e46bb539f Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Wed, 27 Jul 2016 23:34:53 +0100 Subject: [PATCH] Fix AppVeyor env var value conditions I assumed that the documented values of `true` and `false` were booleans, not strings. --- scripts/appveyor/build_installer.ps1 | 2 +- scripts/appveyor/deploy_docs.ps1 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/appveyor/build_installer.ps1 b/scripts/appveyor/build_installer.ps1 index 2b40a07a..b3578825 100644 --- a/scripts/appveyor/build_installer.ps1 +++ b/scripts/appveyor/build_installer.ps1 @@ -1,7 +1,7 @@ $innoInstallPath = 'C:\Program Files (x86)\Inno Setup 5' -if ($env:APPVEYOR_REPO_TAG) { +if ($env:APPVEYOR_REPO_TAG -eq 'true') { if (!(Test-Path $innoInstallPath)) { choco install -y InnoSetup diff --git a/scripts/appveyor/deploy_docs.ps1 b/scripts/appveyor/deploy_docs.ps1 index 12b05c39..3aaa8df4 100644 --- a/scripts/appveyor/deploy_docs.ps1 +++ b/scripts/appveyor/deploy_docs.ps1 @@ -19,7 +19,7 @@ $docsFiles = @( $commitMessage = 'Add v' + $env:APPVEYOR_REPO_TAG_NAME + ' release docs' -if ($env:APPVEYOR_REPO_TAG) { +if ($env:APPVEYOR_REPO_TAG -eq 'true') { cd 'C:\projects' git clone $docsRepoUrl