diff --git a/gcl b/gcl index 70b528bc64..a500c622ef 100755 --- a/gcl +++ b/gcl @@ -6,7 +6,7 @@ base_dir=$(dirname "$0") # Use the batch file as an entry point if on cygwin. -if [ "${OSTYPE}" = "cygwin" ]; then +if [ "${OSTYPE}" = "cygwin" -a "${TERM}" = "cygwin" ]; then ${base_dir}/gcl.bat "$@" exit fi diff --git a/gclient b/gclient index 95561fb58a..639ecfbbe9 100755 --- a/gclient +++ b/gclient @@ -8,7 +8,7 @@ base_dir=$(dirname "$0") # Use the batch file as an entry point if on cygwin. -if [ "${OSTYPE}" = "cygwin" ]; then +if [ "${OSTYPE}" = "cygwin" -a "${TERM}" = "cygwin" ]; then ${base_dir}/gclient.bat "$@" exit fi diff --git a/revert b/revert index c02bd02f96..b66a9db4bf 100755 --- a/revert +++ b/revert @@ -1,5 +1,14 @@ #!/bin/sh +# Copyright (c) 2009 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. base_dir=$(dirname "$0") +# Use the batch file as an entry point if on cygwin. +if [ "${OSTYPE}" = "cygwin" -a "${TERM}" = "cygwin" ]; then + ${base_dir}/revert.bat "$@" + exit +fi + exec python "$base_dir/revert.py" "$@"