]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Allow `arc.bat` to work from paths with spaces in them
authorepriestley <git@epriestley.com>
Wed, 9 Jan 2013 20:34:30 +0000 (12:34 -0800)
committerepriestley <git@epriestley.com>
Wed, 9 Jan 2013 20:34:30 +0000 (12:34 -0800)
Summary: If you dump `arcanist/` into "Program Files" or similar, the `.bat` currently breaks. Quote the path so it doesn't. Fixes T1436.

Test Plan: Ran `arc` with `arcanist/` in a path with spaces in it.

Reviewers: vrana, btrahan

Reviewed By: vrana

CC: aran
Maniphest Tasks: T1436

Differential Revision: https://secure.phabricator.com/D4375

bin/arc.bat

index 4289de86789984d6432fd41786a5bf2df04dd528..a1fd8f6c8928a5f17dc3696d535da2c3cc74dc80 100644 (file)
@@ -1,3 +1,3 @@
 @echo off
-php -f %~dp0..\scripts\arcanist.php -- %*
+php -f "%~dp0..\scripts\arcanist.php" -- %*