fix: update the remove_shims path (#2391)

This commit is contained in:
Zaki Ali
2025-04-29 12:25:17 -07:00
committed by GitHub
parent a1ab95cbed
commit 9493c5fb3b

View File

@@ -168,12 +168,7 @@ export async function replaceWithShims(cmd: string) {
export function removeShims(cmd: string) {
// Only remove shims if the path matches our known shim patterns
const shimPatterns = [
/\/goose-shims\/goosed$/,
/\/goose-shims\/jbang$/,
/\/goose-shims\/npx$/,
/\/goose-shims\/uvx$/,
];
const shimPatterns = [/goosed$/, /jbang$/, /npx$/, /uvx$/];
// Check if the command matches any shim pattern
const isShim = shimPatterns.some((pattern) => pattern.test(cmd));