mirror of
https://github.com/System-End/slack-end.git
synced 2026-04-19 15:18:22 +00:00
enhancement(lint): Fix lint errors for scripts/remove_bg_from_splits.ts
Co-authored-by: NeonGamerBot-QK <saahilattud@gmail.com> Signed-off-by: zeon-neon[bot] <136533918+zeon-neon[bot]@users.noreply.github.com>
This commit is contained in:
parent
aa170d6741
commit
eb240b4747
1 changed files with 16 additions and 13 deletions
|
|
@ -1,15 +1,18 @@
|
|||
import { execSync } from "child_process"
|
||||
import fs from "fs"
|
||||
import { execSync } from "child_process";
|
||||
import fs from "fs";
|
||||
|
||||
const splittedVideos = fs.readdirSync("assets/dice/splits")
|
||||
const splittedVideos = fs.readdirSync("assets/dice/splits");
|
||||
|
||||
for(const video of splittedVideos){
|
||||
console.log(`Removing bg from ${video}`)
|
||||
const cmd = `ts-node scripts/remove_bg.ts`
|
||||
console.log(cmd)
|
||||
execSync (cmd, { stdio: 'inherit', env: {
|
||||
...process.env,
|
||||
VIDEO_FILE: `assets/dice/splits/${video}`,
|
||||
OUT_FILE: `assets/dice/splits/c/${video}`
|
||||
} })
|
||||
}
|
||||
for (const video of splittedVideos) {
|
||||
console.log(`Removing bg from ${video}`);
|
||||
const cmd = `ts-node scripts/remove_bg.ts`;
|
||||
console.log(cmd);
|
||||
execSync(cmd, {
|
||||
stdio: "inherit",
|
||||
env: {
|
||||
...process.env,
|
||||
VIDEO_FILE: `assets/dice/splits/${video}`,
|
||||
OUT_FILE: `assets/dice/splits/c/${video}`,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue