Use proper string comparison and end if for Linux

This commit is contained in:
Zach Hyatt 2022-05-17 13:41:23 -07:00
commit 7efbae9f05
No known key found for this signature in database
GPG key ID: 6D69568D0C804EAD
2 changed files with 3 additions and 2 deletions

View file

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

View file

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