Index: tools/prepare-bisect-perf-regression.py |
diff --git a/tools/prepare-bisect-perf-regression.py b/tools/prepare-bisect-perf-regression.py |
index efcafc26e070351d48d483e410608345cfba1fd1..c12edbd4884498a3deb7f346eb4fc1864273fa09 100755 |
--- a/tools/prepare-bisect-perf-regression.py |
+++ b/tools/prepare-bisect-perf-regression.py |
@@ -57,9 +57,11 @@ def main(): |
parser.print_help() |
return 1 |
- return bisect_utils.CreateBisectDirectoryAndSetupDepot( |
- opts, |
- bisect_utils.DEFAULT_GCLIENT_CUSTOM_DEPS) |
+ if not bisect_utils.CheckIfBisectDepotExists(opts): |
+ return bisect_utils.CreateBisectDirectoryAndSetupDepot( |
+ opts, |
+ bisect_utils.DEFAULT_GCLIENT_CUSTOM_DEPS) |
+ return 0 |
if __name__ == '__main__': |