From 7efbae9f053a2adeb99ffb3063e77e024217d7b8 Mon Sep 17 00:00:00 2001 From: Zach Hyatt Date: Tue, 17 May 2022 13:41:23 -0700 Subject: [PATCH] Use proper string comparison and end if for Linux --- ci/actions/deploy.sh | 3 ++- ci/actions/windows/deploy.ps1 | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ci/actions/deploy.sh b/ci/actions/deploy.sh index b5ba81ab..9c5e9dd3 100755 --- a/ci/actions/deploy.sh +++ b/ci/actions/deploy.sh @@ -13,10 +13,11 @@ else BUILD="live" fi -if [[ "${GITHUB_REPOSITORY}" -eq "nanocurrency/nano-node" ]]; then +if [[ "${GITHUB_REPOSITORY:-}" == "nanocurrency/nano-node" ]]; then S3_BUCKET="repo.nano.org" else S3_BUCKET="private-build-repo" +fi if [[ "$OS" == 'Linux' ]]; then sha256sum $GITHUB_WORKSPACE/build/nano-node-*-Linux.tar.bz2 >$GITHUB_WORKSPACE/nano-node-$TAG-Linux.tar.bz2.sha256 diff --git a/ci/actions/windows/deploy.ps1 b/ci/actions/windows/deploy.ps1 index 7a22d5be..3270ed16 100644 --- a/ci/actions/windows/deploy.ps1 +++ b/ci/actions/windows/deploy.ps1 @@ -10,7 +10,7 @@ else { $network_cfg = "live" } -if ( ${env:GITHUB_REPOSITORY} -eq "nanocurrency/nano-node" ) { +if ( ${env:GITHUB_REPOSITORY} == "nanocurrency/nano-node" ) { $s3_bucket="repo.nano.org" } else {