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
This commit is contained in:
commit-bot@chromium.org 2014-03-05 14:16:36 +00:00
parent 5e4112b33a
commit c4b3e75a7b

View File

@ -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