Skip to content
This repository was archived by the owner on Jul 11, 2023. It is now read-only.

Commit d382dbd

Browse files
committed
Fix for Win32
The windowsVerbatimArguments is used in Node's `exec()`, but I haven't tested on Windows.
1 parent 68582e5 commit d382dbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rsync.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ Rsync.prototype.execute = function(callback, stdoutHandler, stderrHandler) {
442442
var cmdProc;
443443
if ('win32' === process.platform) {
444444
cmdProc = spawn('cmd.exe', ['/s', '/c', '"' + this.command() + '"'],
445-
{ stdio: 'pipe' });
445+
{ stdio: 'pipe', windowsVerbatimArguments: true });
446446
}
447447
else {
448448
cmdProc = spawn('/bin/sh', ['-c', this.command()],

0 commit comments

Comments
 (0)