We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c7a9dae commit 59cab8fCopy full SHA for 59cab8f
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" {print $9}\'', execOptions).trim();
47
48
49
function getProcessForPort(port) {
0 commit comments