Skip to content

Commit 994c4ba

Browse files
committed
Fix bug where the cwd for processes is search path when found
1 parent 70cc388 commit 994c4ba

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "github-run-script",
3-
"version": "1.0.3",
3+
"version": "1.0.4",
44
"description": "Run a script on multiple repositories, cloning them if needed.",
55
"main": "dist/index.js",
66
"type": "commonjs",

src/handler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export default async function handler(script: string, flags: CliFlags) {
7575
for (const directory of directories) {
7676
if (repo === directory) {
7777
console.log(`Found ${repo} in ${path}`);
78-
directoryMapping.set([owner, repo], path);
78+
directoryMapping.set([owner, repo], `${path}/${repo}`);
7979
break;
8080
}
8181
}

0 commit comments

Comments
 (0)