From fcf14cc095b70c70d2c8650010b1aecb664ef9f3 Mon Sep 17 00:00:00 2001 From: Sam Ansmink Date: Wed, 19 Jul 2023 11:10:35 +0200 Subject: [PATCH] fix deploy script --- scripts/extension-upload.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/extension-upload.sh b/scripts/extension-upload.sh index dbdd59ec..98452952 100755 --- a/scripts/extension-upload.sh +++ b/scripts/extension-upload.sh @@ -13,12 +13,12 @@ set -e ext="build/release/extension/$1/$1.duckdb_extension" # compress extension binary -gzip < "${ext}" > "$1.duckdb_extension.gz" +gzip < "${ext}" > "$ext.gz" # upload compressed extension binary to S3 -aws s3 cp "$1.duckdb_extension.gz s3://$5/$1/$2/$3/$4/$1.duckdb_extension.gz" --acl public-read +aws s3 cp $ext.gz s3://$5/$1/$2/$3/$4/$1.duckdb_extension.gz --acl public-read # upload to latest if copy_to_latest is set to true if [[ $6 = 'true' ]]; then - aws s3 cp "$1.duckdb_extension.gz s3://$5/$1/latest/$3/$4/$1.duckdb_extension.gz" --acl public-read -fi + aws s3 cp $ext.gz s3://$5/$1/latest/$3/$4/$1.duckdb_extension.gz --acl public-read +fi \ No newline at end of file