File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import { getCurrentBranch } from "./utils.ts";
2
2
3
3
const branch = await getCurrentBranch ( ) ;
4
4
const repo = Deno . env . get ( "GITHUB_REPOSITORY" ) ;
5
+ const repoName = repo ?. split ( "/" ) [ 1 ] ;
5
6
const repoUrl = new URL ( `https://github.com/${ repo } ` ) ;
6
7
const scriptUrl = new URL ( `https://raw.githubusercontent.com/${ repo } /${ branch } /scripts/download.sh` ) ;
7
8
@@ -43,8 +44,8 @@ export const manual = [
43
44
tools : [ "git" ] ,
44
45
commands : [
45
46
`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 } ` ,
48
49
] ,
49
50
} ,
50
51
] as { type : string ; tools : string [ ] ; commands : string [ ] } [ ] ;
You can’t perform that action at this time.
0 commit comments