Skip to content

Commit d2a1909

Browse files
committed
Fix configure warning showing binary path instead of directory for PATH
The "Please ensure that <path> is in your path" warnings emitted when the configure script cannot create a symlink were showing the path to the quarto binary itself, but PATH expects a directory. Use config.directoryInfo.bin so the warning reports the directory users should add to PATH. Closes #14426
1 parent 9b985d0 commit d2a1909

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

package/src/common/configure.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -126,19 +126,15 @@ export async function configure(
126126
info(`> Didn't create symlink at ${symlinkPath}`);
127127
if (i === symlinksFiltered.length - 1) {
128128
warning(
129-
`\n> Please ensure that ${
130-
join(config.directoryInfo.bin, "quarto")
131-
} is in your path.`,
129+
`\n> Please ensure that ${config.directoryInfo.bin} is in your path.`,
132130
);
133131
}
134132
}
135133
}
136134
} else {
137135
// Just warn the user and create a symlink in our last resort
138136
warning(
139-
`\n> Please ensure that ${
140-
join(config.directoryInfo.bin, "quarto")
141-
} is in your path.`,
137+
`\n> Please ensure that ${config.directoryInfo.bin} is in your path.`,
142138
);
143139
}
144140
}

0 commit comments

Comments
 (0)