Restore reasonable defaults for local deployment

This commit is contained in:
Alessandro Pignotti 2023-05-22 17:18:28 +02:00
parent f5c40e4723
commit b16dedd9de

View File

@ -245,11 +245,20 @@ __ __ _ __ ____ __
function runBash() function runBash()
{ {
// cmd, cwd, args and env are replaced by the Github actions workflow. // cmd, cwd, args and env are replaced by the Github actions workflow.
var cmd = CMD;
var args = ARGS;
var env = ENV;
var cwd = CWD;
// Reasonable defaults for local deployments
// cmd = "/bin/bash";
// args = ["--login"];
// env = ["HOME=/home/user", "TERM=xterm", "USER=user", "SHELL=/bin/bash", "EDITOR=vim", "LANG=en_US.UTF-8", "LC_ALL=C"];
// cwd = "/home/user";
const structure = { const structure = {
cmd: CMD, cmd: cmd,
args: ARGS, args: args,
env: ENV, env: env,
cwd: CWD cwd: cwd
} }
if (typeof SharedArrayBuffer === "undefined") if (typeof SharedArrayBuffer === "undefined")
{ {