shellcheck

This commit is contained in:
Michael Vines 2019-06-07 21:35:51 -07:00
parent 487826a539
commit 97b9d57b62
No known key found for this signature in database
GPG Key ID: 33F4FDEC4E0E88BD
1 changed files with 8 additions and 8 deletions

View File

@ -122,9 +122,9 @@ if [[ -n $DO_NOT_PUBLISH_TAR ]]; then
exit 0 exit 0
fi 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 if [[ -n $BUILDKITE ]]; then
echo --- AWS S3 Store: $file echo --- AWS S3 Store: "$file"
( (
set -x set -x
$DRYRUN docker run \ $DRYRUN docker run \
@ -133,29 +133,29 @@ for file in solana-release-$TARGET.tar.bz2 solana-install-$TARGET*; do
--env AWS_SECRET_ACCESS_KEY \ --env AWS_SECRET_ACCESS_KEY \
--volume "$PWD:/solana" \ --volume "$PWD:/solana" \
eremite/aws-cli:2018.12.18 \ 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: 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 if [[ -n $TAG ]]; then
ci/upload-github-release-asset.sh $file ci/upload-github-release-asset.sh "$file"
fi fi
elif [[ -n $TRAVIS ]]; then elif [[ -n $TRAVIS ]]; then
# .travis.yml uploads everything in the travis-s3-upload/ directory to release.solana.com # .travis.yml uploads everything in the travis-s3-upload/ directory to release.solana.com
mkdir -p travis-s3-upload/"$CHANNEL_OR_TAG" 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 if [[ -n $TAG ]]; then
# .travis.yaml uploads everything in the travis-release-upload/ directory to # .travis.yaml uploads everything in the travis-release-upload/ directory to
# the associated Github Release # the associated Github Release
mkdir -p travis-release-upload/ mkdir -p travis-release-upload/
cp -v $file travis-release-upload/ cp -v "$file" travis-release-upload/
fi fi
elif [[ -n $APPVEYOR ]]; then elif [[ -n $APPVEYOR ]]; then
# Add artifacts for .appveyor.yml to upload # Add artifacts for .appveyor.yml to upload
appveyor PushArtifact $file -FileName "$CHANNEL_OR_TAG"/$file appveyor PushArtifact "$file" -FileName "$CHANNEL_OR_TAG"/"$file"
fi fi
done done