We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
cwd
1 parent 43139bc commit 9bdc428Copy full SHA for 9bdc428
packages/react-dev-utils/getProcessForPort.js
@@ -43,7 +43,7 @@ function getProcessCommand(processId, processDirectory) {
43
}
44
45
function getDirectoryOfProcessById(processId) {
46
- 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();
47
48
49
function getProcessForPort(port) {
0 commit comments