aboutsummaryrefslogtreecommitdiffhomepage
path: root/bin
diff options
context:
space:
mode:
authorGravatar herb <herb@google.com>2016-08-01 12:26:51 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-08-01 12:26:51 -0700
commit35f3e59d1c9900a00f31928b83bf7c2bfe4c7647 (patch)
tree24e1b64ad8b01e416048b1e967658b6433e33295 /bin
parent68f2f7dc4229c3761dd5074a94c35878abcb9a36 (diff)
Pick the right download tool for windows.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/fetch-gn7
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/fetch-gn b/bin/fetch-gn
index f2d3c42960..fc2c82a089 100755
--- a/bin/fetch-gn
+++ b/bin/fetch-gn
@@ -19,6 +19,11 @@ def gn_path():
return 'buildtools/mac/gn'
return 'buildtools/win/gn.exe'
-quiet('download_from_google_storage',
+def download_tool():
+ if 'linux' in sys.platform or 'darwin' in sys.platform:
+ return 'download_from_google_storage'
+ return 'download_from_google_storage.bat'
+
+quiet(download_tool(),
'--no_resume --no_auth --bucket chromium-gn',
'-s ', gn_path() + '.sha1')