Skip to content

Commit 1e33e28

Browse files
fix: write artifact basename to configuration in update dependencies (#347)
Issue #, if available: Found in #346 *Description of changes:* This change updates update-rootfs.sh and update-deps.sh to write the artifact basename to the ARTIFACT configuration variable. *Testing done:* Locally tested in bash: ``` aarch64_deps="aarch64/lima-and-qemu.macos-aarch64.1719307443.tar.gz" echo "AARCH64_ARTIFACT=$(basename "${aarch64_deps}")" ``` - [x] I've reviewed the guidance in CONTRIBUTING.md #### License Acceptance By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. Signed-off-by: Austin Vazquez <[email protected]>
1 parent 19274d9 commit 1e33e28

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

bin/update-deps.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ truncate -s 0 "${BUNDLES_FILE}"
5050
echo "ARTIFACT_BASE_URL=${DEPENDENCY_CLOUDFRONT_URL}"
5151
echo ""
5252
echo "AARCH64_ARTIFACT_PATHING=${AARCH64}"
53-
echo "AARCH64_ARTIFACT=${aarch64_deps}"
53+
echo "AARCH64_ARTIFACT=$(basename "${aarch64_deps}")"
5454
echo "AARCH64_512_DIGEST=${aarch64_deps_shasum}"
5555
echo ""
5656
echo "X86_64_ARTIFACT_PATHING=${X86_64}"
57-
echo "X86_64_ARTIFACT=${amd64_deps}"
57+
echo "X86_64_ARTIFACT=$(basename "${amd64_deps}")"
5858
echo "X86_64_512_DIGEST=${amd64_deps_shasum}"
5959
} >> "${BUNDLES_FILE}"

bin/update-rootfs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,6 @@ truncate -s 0 "${ROOTFS_FILE}"
4545
echo "ARTIFACT_BASE_URL=${DEPENDENCY_CLOUDFRONT_URL}"
4646
echo ""
4747
echo "X86_64_ARTIFACT_PATHING=${PLATFORM}/${X86_64}"
48-
echo "X86_64_ARTIFACT=${amd64_deps}"
48+
echo "X86_64_ARTIFACT=$(basename "${amd64_deps}")"
4949
echo "X86_64_512_DIGEST=${amd64_deps_shasum}"
5050
} >> "${ROOTFS_FILE}"

0 commit comments

Comments
 (0)