Skip to content

Commit 43e1f0a

Browse files
committed
fixed wrong repo name
1 parent 21bcdb2 commit 43e1f0a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/commands.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { getCurrentBranch } from "./utils.ts";
22

33
const branch = await getCurrentBranch();
44
const repo = Deno.env.get("GITHUB_REPOSITORY");
5+
const repoName = repo?.split("/")[1];
56
const repoUrl = new URL(`https://github.com/${repo}`);
67
const scriptUrl = new URL(`https://raw.githubusercontent.com/${repo}/${branch}/scripts/download.sh`);
78

@@ -43,8 +44,8 @@ export const manual = [
4344
tools: ["git"],
4445
commands: [
4546
`git clone --depth 1 --single-branch --branch ${branch} ${repoUrl}.git`,
46-
`mv ${repo}/wildcards/*.txt . > /dev/null 2>&1`,
47-
`rm -rf ${repo}`,
47+
`mv ${repoName}/wildcards/*.txt . > /dev/null 2>&1`,
48+
`rm -rf ${repoName}`,
4849
],
4950
},
5051
] as { type: string; tools: string[]; commands: string[] }[];

0 commit comments

Comments
 (0)