feat: mark encode script as executable
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user