feat: mark encode script as executable

This commit is contained in:
Esa Kataja
2025-10-04 18:21:29 +03:00
parent 1eda5b676f
commit f3f88edc0f
+2
View File
@@ -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() {