mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-16 10:28:45 +00:00
fix(cli/completion): re-apply shell-profile source-line guard (re-#78659) (#80797)
This commit is contained in:
@@ -69,9 +69,9 @@ function formatCompletionSourceLine(
|
||||
cachePath: string,
|
||||
): string {
|
||||
if (shell === "fish") {
|
||||
return `source "${cachePath}"`;
|
||||
return `test -f "${cachePath}"; and source "${cachePath}"`;
|
||||
}
|
||||
return `source "${cachePath}"`;
|
||||
return `[ -f "${cachePath}" ] && source "${cachePath}"`;
|
||||
}
|
||||
|
||||
function isCompletionProfileHeader(line: string): boolean {
|
||||
|
||||
Reference in New Issue
Block a user