From 1244b20a288159b0abfc5e15249c244e63398431 Mon Sep 17 00:00:00 2001 From: Gavin Inglis Date: Thu, 3 Aug 2023 16:01:26 -0700 Subject: [PATCH] fix: use --recursive and correct pathing in update rootfs Signed-off-by: Gavin Inglis --- bin/update-rootfs.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/update-rootfs.sh b/bin/update-rootfs.sh index e4ef487..4beb3d2 100755 --- a/bin/update-rootfs.sh +++ b/bin/update-rootfs.sh @@ -17,11 +17,11 @@ done [[ -z "$dependency_bucket" ]] && { echo "Error: Dependency bucket not set"; exit 1; } -aarch64Deps=$(aws s3 ls s3://${dependency_bucket}/${PLATFORM}/${AARCH64} | grep "$AARCH64_FILENAME_PATTERN" | sort | tail -n 1 | awk '{print $4}') +aarch64Deps=$(aws s3 ls s3://${dependency_bucket}/${PLATFORM}/${AARCH64}/ --recursive | grep "$AARCH64_FILENAME_PATTERN" | sort | tail -n 1 | awk '{print $4}') [[ -z "$aarch64Deps" ]] && { echo "Error: aarch64 dependency not found"; exit 1; } -amd64Deps=$(aws s3 ls s3://${dependency_bucket}/${PLATFORM}/${X86_64} | grep "$AMD64_FILENAME_PATTERN" | sort | tail -n 1 | awk '{print $4}') +amd64Deps=$(aws s3 ls s3://${dependency_bucket}/${PLATFORM}/${X86_64}/ --recursive | grep "$AMD64_FILENAME_PATTERN" | sort | tail -n 1 | awk '{print $4}') [[ -z "$amd64Deps" ]] && { echo "Error: x86_64 dependency not found"; exit 1; }