From 97b9d57b627cf860015bea73e8a7d7d72c2beb87 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Fri, 7 Jun 2019 21:35:51 -0700 Subject: [PATCH] shellcheck --- ci/publish-tarball.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/ci/publish-tarball.sh b/ci/publish-tarball.sh index f33687ea1..df34c26d6 100755 --- a/ci/publish-tarball.sh +++ b/ci/publish-tarball.sh @@ -122,9 +122,9 @@ if [[ -n $DO_NOT_PUBLISH_TAR ]]; then exit 0 fi -for file in solana-release-$TARGET.tar.bz2 solana-install-$TARGET*; do +for file in solana-release-$TARGET.tar.bz2 solana-install-"$TARGET"*; do if [[ -n $BUILDKITE ]]; then - echo --- AWS S3 Store: $file + echo --- AWS S3 Store: "$file" ( set -x $DRYRUN docker run \ @@ -133,29 +133,29 @@ for file in solana-release-$TARGET.tar.bz2 solana-install-$TARGET*; do --env AWS_SECRET_ACCESS_KEY \ --volume "$PWD:/solana" \ eremite/aws-cli:2018.12.18 \ - /usr/bin/s3cmd --acl-public put /solana/"$file" s3://release.solana.com/"$CHANNEL_OR_TAG"/$file + /usr/bin/s3cmd --acl-public put /solana/"$file" s3://release.solana.com/"$CHANNEL_OR_TAG"/"$file" echo Published to: - $DRYRUN ci/format-url.sh http://release.solana.com/"$CHANNEL_OR_TAG"/$file + $DRYRUN ci/format-url.sh http://release.solana.com/"$CHANNEL_OR_TAG"/"$file" ) if [[ -n $TAG ]]; then - ci/upload-github-release-asset.sh $file + ci/upload-github-release-asset.sh "$file" fi elif [[ -n $TRAVIS ]]; then # .travis.yml uploads everything in the travis-s3-upload/ directory to release.solana.com mkdir -p travis-s3-upload/"$CHANNEL_OR_TAG" - cp -v $file travis-s3-upload/"$CHANNEL_OR_TAG"/ + cp -v "$file" travis-s3-upload/"$CHANNEL_OR_TAG"/ if [[ -n $TAG ]]; then # .travis.yaml uploads everything in the travis-release-upload/ directory to # the associated Github Release mkdir -p travis-release-upload/ - cp -v $file travis-release-upload/ + cp -v "$file" travis-release-upload/ fi elif [[ -n $APPVEYOR ]]; then # Add artifacts for .appveyor.yml to upload - appveyor PushArtifact $file -FileName "$CHANNEL_OR_TAG"/$file + appveyor PushArtifact "$file" -FileName "$CHANNEL_OR_TAG"/"$file" fi done