Skip to content
Source
Sign inSign up
pingdotgg/t3code

Fix fish shell PATH bootstrap on macOS #239

Closeddnnaji(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/239/headopened View on GitHub

Showing 2 changed files with 4 additions and 4 deletions.

x
0 of 2 viewed, 2 left
2 additions and 2 deletionsapps/desktop/src/fixPath.tsModified
View file
@@ -5,10 +5,10 @@
​
try {
const shell = process.env.SHELL ?? "/bin/zsh";
- const result = ChildProcess.execFileSync(shell, ["-ilc", "echo -n $PATH"], {
+ const result = ChildProcess.execFileSync(shell, ["-ilc", 'printf "%s" "$PATH"'], {
encoding: "utf8",
timeout: 5000,
- });
+ }).trim();
if (result) {
process.env.PATH = result;
2 additions and 2 deletionsapps/server/src/os-jank.tsModified
View file
@@ -7,10 +7,10 @@
​
try {
const shell = process.env.SHELL ?? "/bin/zsh";
- const result = execFileSync(shell, ["-ilc", "echo -n $PATH"], {
+ const result = execFileSync(shell, ["-ilc", 'printf "%s" "$PATH"'], {
encoding: "utf8",
timeout: 5000,
- });
+ }).trim();
if (result) {
process.env.PATH = result;