Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add
/D
argument for cd to trigger drive change when changing d…
…irectory (#53) When gradle plugin runs [run_build_tool.cmd](https://github.com/irondash/cargokit/blob/a3b7352f9ebea0108d144c26437138f2903d6b35/run_build_tool.cmd) it passes to script env variable `%CARGOKIT_TOOL_TEMP_DIR%`. Then script make `cd` to dir that passed inside this variable. But if this variable points to directory that located on different drive than working directory for script, cd will not work. For it to work we need to pass `/D` parameter to `cd`. I made this change localy and it helps. Right now line [11](https://github.com/irondash/cargokit/blob/a3b7352f9ebea0108d144c26437138f2903d6b35/run_build_tool.cmd#L11) in local my script looks like: ``` cd /D "%CARGOKIT_TOOL_TEMP_DIR%" ``` and it works. This is PR that fix this issue. PS: [my inital issue](superlistapp/super_native_extensions#290)
- Loading branch information