diff --git a/setup.ts b/setup.ts index f1b7739..b702036 100644 --- a/setup.ts +++ b/setup.ts @@ -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)[arch], diff --git a/utils.ts b/utils.ts index d028ca2..4497bf5 100644 --- a/utils.ts +++ b/utils.ts @@ -1,5 +1,5 @@ export function run(command: string, env?: Record){ - console.log(`\n>>> ${command}\n`); + console.log(`\n>>> ${command}`); try{ new Deno.Command('sh', { env, @@ -13,9 +13,9 @@ export function run(command: string, env?: Record){ } export function runWithOutput(command: string, env?: Record) { - 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'