Skip to content

Commit 38b4d58

Browse files
committed
fix(spawnify) cd = "cd ~"
1 parent 11dd25f commit 38b4d58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/spawnify.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ Spawnify.prototype._onMessage = function onMessage(command, options) {
7575
command = command
7676
.replace(WIN ? regExpCDWin : regExpCD, '');
7777

78-
this._onCD(command, dir);
78+
this._onCD(command || '~', dir);
7979
} else {
8080
if (WIN)
8181
command = 'cmd /C ' + command;

0 commit comments

Comments
 (0)