From 4845f0ed694ff071da5f6ee937a0bce2ea4e6fd2 Mon Sep 17 00:00:00 2001 From: "pkasting@chromium.org" Date: Mon, 29 Jun 2015 22:54:58 +0000 Subject: [PATCH] Fix slash direction: paths in msysgit use /, not \. BUG=none TEST=update_depot_tools actually works in msysgit Review URL: https://codereview.chromium.org/1208053003 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@295866 0039d316-1c4b-4281-b951-d872f2087c98 --- update_depot_tools | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update_depot_tools b/update_depot_tools index 12b51edead..bd20609d9d 100755 --- a/update_depot_tools +++ b/update_depot_tools @@ -17,7 +17,7 @@ OUTPUT="$(uname | grep 'MINGW')" MINGW=$? if [ $MINGW = 0 ]; then - base_dir="${0%\\*}" + base_dir="${0%/*}" else base_dir=$(dirname "$0") if [ -L "$base_dir" ]; then