From e012595d7ee5750509aa1de70d4716eac5978110 Mon Sep 17 00:00:00 2001 From: Micah Lee Date: Sun, 29 May 2022 14:30:23 -0700 Subject: [PATCH] Fix Test-Path if statements --- .circleci/config.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 4a981253..13d1c97b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -208,7 +208,7 @@ jobs: - run: name: Build obfs4proxy command: | - if (Test-Path -Path C:\Users\circleci\project\desktop\onionshare\resources\tor\Tor\obfs4proxy.exe -PathType -leaf -eq $true) { + if ((Test-Path -Path C:\Users\circleci\project\desktop\onionshare\resources\tor\Tor\obfs4proxy.exe) -eq $True) { Write-Output "obfs4proxy already built" } else { # curl https://keys.openpgp.org/vks/v1/by-fingerprint/9EB1A490C73CC5D44DFB3E47BFBD1C7B8A6EC81A | gpg --import @@ -232,7 +232,7 @@ jobs: - run: name: Build snowflake-client command: | - if (Test-Path -Path C:\Users\circleci\project\desktop\onionshare\resources\tor\Tor\snowflake-client.exe -PathType -leaf -eq $true) { + if ((Test-Path -Path C:\Users\circleci\project\desktop\onionshare\resources\tor\Tor\snowflake-client.exe) -eq $True) { Write-Output "snowflake already built" } else { go install git.torproject.org/pluggable-transports/snowflake.git/client@v2.1.0 @@ -250,7 +250,7 @@ jobs: - run: name: Build meek-client command: | - if (Test-Path -Path C:\Users\circleci\project\desktop\onionshare\resources\tor\Tor\meek-client.exe -PathType -leaf -eq $true) { + if ((Test-Path -Path C:\Users\circleci\project\desktop\onionshare\resources\tor\Tor\meek-client.exe) -eq $True) { Write-Output "snowflake already built" } else { go install git.torproject.org/pluggable-transports/meek.git/meek-client@v0.37.0