Fix Test-Path if statements

This commit is contained in:
Micah Lee 2022-05-29 14:30:23 -07:00
parent d8af8a39be
commit 50ed30a84f
No known key found for this signature in database
GPG Key ID: 403C2657CD994F73

View File

@ -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