Skip to content
This repository has been archived by the owner on Oct 22, 2021. It is now read-only.

Commit

Permalink
🚑 Fix macOS CWD tracker not handling paths spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
GitSquared committed Apr 30, 2019
1 parent aeabef7 commit 0b574b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/classes/terminal.class.js
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ class Terminal {
});
break;
case "Darwin":
require("child_process").exec(`lsof -a -d cwd -p ${pid} | tail -1 | awk '{ for (i=9; i<=NF; i++) printf $i }'`, (e, cwd) => {
require("child_process").exec(`lsof -a -d cwd -p ${pid} | tail -1 | awk '{ for (i=9; i<=NF; i++) printf "%s ", $i }'`, (e, cwd) => {
if (e !== null) {
reject(e);
} else {
Expand Down

0 comments on commit 0b574b0

Please sign in to comment.