Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2414)

Unified Diff: gclient

Issue 1848353003: Make msys depot_tools upgrade process smoother. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: add comment Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « bootstrap/win/win_tools.bat ('k') | update_depot_tools » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gclient
diff --git a/gclient b/gclient
index 798b2d8d754a07034122aff0e09a6f3782e47afb..a8cab460a827008b5248f2cd439bba59d3d2d477 100755
--- a/gclient
+++ b/gclient
@@ -7,6 +7,16 @@ base_dir=$(dirname "$0")
if [[ "#grep#fetch#cleanup#diff#" != *"#$1#"* ]]; then
"$base_dir"/update_depot_tools "$@"
+ case $? in
+ 123)
+ # msys environment was upgraded, need to quit.
+ exit 0
+ ;;
+ 0)
+ ;;
+ *)
+ exit $?
+ esac
fi
PYTHONDONTWRITEBYTECODE=1 exec python "$base_dir/gclient.py" "$@"
« no previous file with comments | « bootstrap/win/win_tools.bat ('k') | update_depot_tools » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698