Skip to content

Commit

Permalink
fixing things for people with the username cwd
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdrackett committed Mar 2, 2017
1 parent 43139bc commit 9bdc428
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-dev-utils/getProcessForPort.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function getProcessCommand(processId, processDirectory) {
}

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

function getProcessForPort(port) {
Expand Down

0 comments on commit 9bdc428

Please sign in to comment.