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) {
|
export function removeShims(cmd: string) {
|
||||||
// Only remove shims if the path matches our known shim patterns
|
// Only remove shims if the path matches our known shim patterns
|
||||||
const shimPatterns = [
|
const shimPatterns = [/goosed$/, /jbang$/, /npx$/, /uvx$/];
|
||||||
/\/goose-shims\/goosed$/,
|
|
||||||
/\/goose-shims\/jbang$/,
|
|
||||||
/\/goose-shims\/npx$/,
|
|
||||||
/\/goose-shims\/uvx$/,
|
|
||||||
];
|
|
||||||
|
|
||||||
// Check if the command matches any shim pattern
|
// Check if the command matches any shim pattern
|
||||||
const isShim = shimPatterns.some((pattern) => pattern.test(cmd));
|
const isShim = shimPatterns.some((pattern) => pattern.test(cmd));
|
||||||
|
|||||||
Reference in New Issue
Block a user