Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
imzlh committed Aug 4, 2024
1 parent f78ea17 commit 4908cb6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ run(`tar -xf vlist.tgz`);

// 克隆alist仓库
run(`git clone https://github.com/alist-org/alist.git`);
run(`mv dist/ alist/public/`);
run(`rm -rf alist/public/`);
run(`mv dist/ alist/public`);

for(const arch in CC){
const cc = (CC as Record<string, string>)[arch],
Expand Down
6 changes: 3 additions & 3 deletions utils.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export function run(command: string, env?: Record<string, string>){
console.log(`\n>>> ${command}\n`);
console.log(`\n>>> ${command}`);
try{
new Deno.Command('sh', {
env,
Expand All @@ -13,9 +13,9 @@ export function run(command: string, env?: Record<string, string>){
}

export function runWithOutput(command: string, env?: Record<string, string>) {
console.log(`\n>>> ${command}\n`);
console.log(`\n>>> ${command}`);
const p = new Deno.Command('sh', {
args: ['sh', '-c', command],
args: ['-c', command],
env,
stdout: 'piped',
stderr: 'piped'
Expand Down

0 comments on commit 4908cb6

Please sign in to comment.