mirror of
https://github.com/aljazceru/goose.git
synced 2026-01-27 02:04:23 +01:00
fix: update the remove_shims path (#2391)
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user