Use grep -e --force instead of grep "--force" since apparently the latter doesn't work properly in all cases.

BUG=441072
TEST=No errors from gclient :/

Review URL: https://codereview.chromium.org/802513003

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@293380 0039d316-1c4b-4281-b951-d872f2087c98
changes/01/332501/1
pkasting@chromium.org 11 years ago
parent b6795643ec
commit 884b52c122

@ -140,7 +140,7 @@ if [ "X$DEPOT_TOOLS_UPDATE" != "X0" -a -e "$base_dir/.svn" ]
then
# Update the root directory to stay up-to-date with the latest depot_tools.
BEFORE_REVISION=$(get_svn_revision)
if echo $* | grep "--force" > /dev/null; then
if echo $* | grep -e --force > /dev/null; then
"$SVN" -q revert -R "$base_dir"
fi
"$SVN" -q up "$base_dir"

Loading…
Cancel
Save