Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Unified Diff: platform_tools/barelinux/bin/arm64_download

Issue 183883020: Make arm64 test script comaptable with old versions of gsutil. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698