Merge pull request #251 from rrushton/master
Add check for Windows and use windows specific 'mv' command See #248
This commit is contained in:
commit
a0576c419e
|
@ -14,7 +14,10 @@ getCmd = (inputPath, outputPath, options) ->
|
||||||
if fixers
|
if fixers
|
||||||
fixerOption = " --fixers=#{fixers} "
|
fixerOption = " --fixers=#{fixers} "
|
||||||
|
|
||||||
cmd = "#{levelOption} #{fixerOption} \"#{inputPath}\") || (mv \"#{inputPath}\" \"#{outputPath}\")"
|
if process.platform == 'win32'
|
||||||
|
cmd = "#{levelOption} #{fixerOption} \"#{inputPath}\") & move \"#{inputPath}\" \"#{outputPath}\""
|
||||||
|
else
|
||||||
|
cmd = "#{levelOption} #{fixerOption} \"#{inputPath}\") || (mv \"#{inputPath}\" \"#{outputPath}\")"
|
||||||
|
|
||||||
if phpCsFixerPath
|
if phpCsFixerPath
|
||||||
# Use absolute path
|
# Use absolute path
|
||||||
|
|
Loading…
Reference in New Issue