|
@@ -6,17 +6,20 @@
|
|
|
base_dir=$(dirname "$0")
|
|
|
|
|
|
if [[ "#grep#fetch#cleanup#diff#setdep#" != *"#$1#"* ]]; then
|
|
|
- "$base_dir"/update_depot_tools "$@"
|
|
|
- case $? in
|
|
|
- 123)
|
|
|
- # msys environment was upgraded, need to quit.
|
|
|
- exit 0
|
|
|
- ;;
|
|
|
- 0)
|
|
|
- ;;
|
|
|
- *)
|
|
|
- exit $?
|
|
|
- esac
|
|
|
+ # Shall skip authomatic update?
|
|
|
+ if [[ $DEPOT_TOOLS_UPDATE != 0 ]]; then
|
|
|
+ "$base_dir"/update_depot_tools "$@"
|
|
|
+ case $? in
|
|
|
+ 123)
|
|
|
+ # msys environment was upgraded, need to quit.
|
|
|
+ exit 0
|
|
|
+ ;;
|
|
|
+ 0)
|
|
|
+ ;;
|
|
|
+ *)
|
|
|
+ exit $?
|
|
|
+ esac
|
|
|
+ fi
|
|
|
fi
|
|
|
|
|
|
# Ensure that "depot_tools" is somewhere in PATH so this tool can be used
|