Index: platform_tools/barelinux/bin/arm64_download |
diff --git a/platform_tools/barelinux/bin/arm64_download b/platform_tools/barelinux/bin/arm64_download |
index 598ee89452a013a78519e8897b289fe5be057c6d..5bb44ec16d8ee868f1eaa2f9476ed4319e273feb 100755 |
--- a/platform_tools/barelinux/bin/arm64_download |
+++ b/platform_tools/barelinux/bin/arm64_download |
@@ -45,7 +45,7 @@ gsutil_check_get() { |
local gurl="$1" |
local file="$2" |
if ! [ -f "$file" ] || \ |
- [ "$(gsutil stat "$gurl" | sed -n 's/\W*Hash (md5):\W*//p')" \ |
+ [ "$(gsutil ls -L "$gurl" | sed -n 's/\W*Hash (md5):\W*//p')" \ |
!= "$(md5sum < "$file" | sed 's/\W*-//')" ] ; then |
try gsutil cp "$gurl" "$file" || return |
fi |