From e47801074e4e3ecfbcec5225e650c1250525b10c Mon Sep 17 00:00:00 2001 From: Cameron Sparr Date: Fri, 4 Sep 2015 13:19:13 -0600 Subject: [PATCH] package.sh script fixes for uploading binaries --- package.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/package.sh b/package.sh index 1a991b111..facd09c3b 100755 --- a/package.sh +++ b/package.sh @@ -307,10 +307,9 @@ if [ "$CIRCLE_BRANCH" == "" ]; then # Upload binaries for b in ${BINS[*]}; do - bin=$GOPATH_INSTALL/bin/$b - zippedbin=$b_$VERSION_linux_x86_64.tar.gz + zippedbin=${b}_${VERSION}_linux_x86_64.tar.gz # Zip the binary - tar -zcf $TMP_WORK_DIR/$zippedbin $bin + tar -zcf $TMP_WORK_DIR/$zippedbin -C $GOPATH_INSTALL/bin ./$b echo "Uploading binary: $zippedbin to S3" AWS_CONFIG_FILE=$AWS_FILE aws s3 cp $TMP_WORK_DIR/$zippedbin \ s3://get.influxdb.org/telegraf/$zippedbin \