From c4b3e75a7b5fd2f31e5573914e8344fc1b0bf17a Mon Sep 17 00:00:00 2001 From: "commit-bot@chromium.org" Date: Wed, 5 Mar 2014 14:16:36 +0000 Subject: [PATCH] Make arm64 test script comaptable with old versions of gsutil. NOTRY=true R=borenet@google.com Author: halcanary@google.com Review URL: https://codereview.chromium.org/183883020 git-svn-id: http://skia.googlecode.com/svn/trunk@13668 2bbb7eff-a529-9590-31e7-b0007b416f81 --- platform_tools/barelinux/bin/arm64_download | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform_tools/barelinux/bin/arm64_download b/platform_tools/barelinux/bin/arm64_download index 598ee89452..5bb44ec16d 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