From 4c300883b62dd09d87c57cd2f597a04eb0f63462 Mon Sep 17 00:00:00 2001 From: gynt Date: Tue, 27 Aug 2024 00:17:35 +0200 Subject: [PATCH] write .sig file in ucp/modules/ directory if specified as an argument to installModule() --- src/function/extensions/installation/install-module.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/function/extensions/installation/install-module.ts b/src/function/extensions/installation/install-module.ts index cc079210..c9f12420 100644 --- a/src/function/extensions/installation/install-module.ts +++ b/src/function/extensions/installation/install-module.ts @@ -105,13 +105,14 @@ export const installModule = async ( const name = await basename(path); const sigPath = `${path}.sig`; + const sigDestPath = `${destination}/${name}.sig`; if (await exists(sigPath)) { - (await copyFile(sigPath, `${destination}/${name}.sig`)).throwIfErr(); + (await copyFile(sigPath, sigDestPath)).throwIfErr(); } if (signature !== undefined) { - (await writeTextFile(sigPath, signature)).throwIfErr(); + (await writeTextFile(sigDestPath, signature)).throwIfErr(); } (await copyFile(path, `${destination}/${name}`)).throwIfErr();