Skip to content

Commit 9bdc428

Browse files
fixing things for people with the username cwd
closes facebook#1694
1 parent 43139bc commit 9bdc428

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-dev-utils/getProcessForPort.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function getProcessCommand(processId, processDirectory) {
4343
}
4444

4545
function getDirectoryOfProcessById(processId) {
46-
return execSync('lsof -p '+ processId + ' | grep cwd | awk \'{print $9}\'', execOptions).trim();
46+
return execSync('lsof -p '+ processId + ' | awk '$4=="cwd"' | awk \'{print $9}\'', execOptions).trim();
4747
}
4848

4949
function getProcessForPort(port) {

0 commit comments

Comments
 (0)