Fix local (working directory) recipes storage (#4588)
This commit is contained in:
@@ -34,7 +34,13 @@ function parseLastModified(val: string | Date): Date {
|
|||||||
* Get the storage directory path for recipes
|
* Get the storage directory path for recipes
|
||||||
*/
|
*/
|
||||||
export function getStorageDirectory(isGlobal: boolean): string {
|
export function getStorageDirectory(isGlobal: boolean): string {
|
||||||
return isGlobal ? '~/.config/goose/recipes' : '.goose/recipes';
|
if (isGlobal) {
|
||||||
|
return '~/.config/goose/recipes';
|
||||||
|
} else {
|
||||||
|
// For directory recipes, build absolute path using working directory
|
||||||
|
const workingDir = window.appConfig.get('GOOSE_WORKING_DIR') as string;
|
||||||
|
return `${workingDir}/.goose/recipes`;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user