OSDN Git Service

Merge "Fix android.bat to properly cd to temp dir" in tools_r9.
authorRaphael Moll <ralf@android.com>
Wed, 29 Dec 2010 00:16:28 +0000 (16:16 -0800)
committerRaphael Moll <ralf@android.com>
Wed, 29 Dec 2010 00:23:09 +0000 (16:23 -0800)
Fixes an issue when the SDK is not on the same drive
than the temp dir that android.bat uses.
Reported on http://code.google.com/p/android/issues/detail?id=4410

Change-Id: Ie89f77b92aaa1219f1b77aa8f8d4117e715d4533

sdkmanager/app/etc/android.bat

index 738029a..6dffb36 100755 (executable)
@@ -62,7 +62,7 @@ if not "%1"=="" goto EndTempCopy
 \r
     rem jar_path and swt_path are relative to PWD so we don't need to adjust them, just change dirs.\r
     set tools_dir=%cd%\r
-    cd %tmp_dir%\r
+    cd /d %tmp_dir%\r
 \r
 :EndTempCopy\r
 \r