| OLD | NEW |
| 1 #!/bin/bash | 1 #!/usr/bin/env bash |
| 2 | 2 |
| 3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
| 6 | 6 |
| 7 # Abort on error. | 7 # Abort on error. |
| 8 set -e | 8 set -e |
| 9 | 9 |
| 10 export DEPOT_TOOLS_UPDATE=0 | 10 export DEPOT_TOOLS_UPDATE=0 |
| 11 | 11 |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 return $exit_code | 141 return $exit_code |
| 142 fi | 142 fi |
| 143 } | 143 } |
| 144 | 144 |
| 145 # Grab the XSRF token from the review server and print it to stdout. | 145 # Grab the XSRF token from the review server and print it to stdout. |
| 146 print_xsrf_token() { | 146 print_xsrf_token() { |
| 147 curl --cookie dev_appserver_login="test@example.com:False" \ | 147 curl --cookie dev_appserver_login="test@example.com:False" \ |
| 148 --header 'X-Requesting-XSRF-Token: 1' \ | 148 --header 'X-Requesting-XSRF-Token: 1' \ |
| 149 http://localhost:10000/xsrf_token 2>/dev/null | 149 http://localhost:10000/xsrf_token 2>/dev/null |
| 150 } | 150 } |
| OLD | NEW |