Skip to contentSkip to conversation

ci: Do not rely on S3_BUCKET_URL being terminated by a slash

PATCH New Jan Kiszka 1 participant 1 message Aug 13, 2021

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 ci: Do not rely on S3_BUCKET_URL being terminated by a slash

From: Jan Kiszka <[email protected]>

Duplicate slashes cause no harm, but a missing can lead to confusing errors.

---

Inserted before "ci: Add default for S3_BUCKET_URL" which didn't add a slash, thus triggered this issue.

 scripts/deploy_to_aws.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/deploy_to_aws.sh +1 -1
index 5a5b29a..9864cc1 100755
@@ -28,7 +28,7 @@ destination="${S3_BUCKET_URL}"
 aws_args="--acl=public-read"
 
 isar_base_name="${ISAR_IMAGE}-${ISAR_DISTRIBUTION}-${target}"
-deploy_dir="${destination}${CI_PIPELINE_ID}/${DEPLOY_DIR_EXTENSION}"
+deploy_dir="${destination}/${CI_PIPELINE_ID}/${DEPLOY_DIR_EXTENSION}"
 #KERNEL
 aws s3 cp "${aws_args}" "${images_dir}/${target}/${isar_base_name}-vmlinuz" "${deploy_dir}/${isar_base_name}-vmlinuz"
 # INITRD
Signature · 1 line
2.31.1