Add check for Windows and use windows specific 'mv' command
This commit is contained in:
parent
239b3678ae
commit
f060995096
|
@ -14,6 +14,9 @@ getCmd = (inputPath, outputPath, options) ->
|
||||||
if fixers
|
if fixers
|
||||||
fixerOption = " --fixers=#{fixers} "
|
fixerOption = " --fixers=#{fixers} "
|
||||||
|
|
||||||
|
if process.platform == 'win32'
|
||||||
|
cmd = "#{levelOption} #{fixerOption} \"#{inputPath}\") & move \"#{inputPath}\" \"#{outputPath}\""
|
||||||
|
else
|
||||||
cmd = "#{levelOption} #{fixerOption} \"#{inputPath}\") || (mv \"#{inputPath}\" \"#{outputPath}\")"
|
cmd = "#{levelOption} #{fixerOption} \"#{inputPath}\") || (mv \"#{inputPath}\" \"#{outputPath}\")"
|
||||||
|
|
||||||
if phpCsFixerPath
|
if phpCsFixerPath
|
||||||
|
|
Loading…
Reference in New Issue