From 994c4ba89f343c31a65bf915f248bde8ec29db54 Mon Sep 17 00:00:00 2001 From: PythonCoderAS <13932583+PythonCoderAS@users.noreply.github.com> Date: Mon, 13 Jun 2022 20:24:49 -0400 Subject: [PATCH] Fix bug where the cwd for processes is search path when found --- package.json | 2 +- src/handler.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 956c122..7c0faf7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "github-run-script", - "version": "1.0.3", + "version": "1.0.4", "description": "Run a script on multiple repositories, cloning them if needed.", "main": "dist/index.js", "type": "commonjs", diff --git a/src/handler.ts b/src/handler.ts index 253d9f2..ef1aa0a 100644 --- a/src/handler.ts +++ b/src/handler.ts @@ -75,7 +75,7 @@ export default async function handler(script: string, flags: CliFlags) { for (const directory of directories) { if (repo === directory) { console.log(`Found ${repo} in ${path}`); - directoryMapping.set([owner, repo], path); + directoryMapping.set([owner, repo], `${path}/${repo}`); break; } }