diff --git a/src/main.ts b/src/main.ts index e876047..56ff0b1 100644 --- a/src/main.ts +++ b/src/main.ts @@ -88,11 +88,13 @@ async function writeShellScript(command: string) { } } Deno.writeTextFileSync(`./encode_${counter}.sh`, command); + Deno.chmod(`./encode_${counter}.sh`, 0o755); console.log(`Created ./encode_${counter}.sh`); return; } const script = `#!/bin/bash\n${command}`; Deno.writeTextFileSync("./encode.sh", script); + Deno.chmod("./encode.sh", 0o755); } async function main() {