Explorar el Código

Restore reasonable defaults for local deployment

Alessandro Pignotti hace 2 años
padre
commit
b16dedd9de
Se han modificado 1 ficheros con 13 adiciones y 4 borrados
  1. 13 4
      index.html

+ 13 - 4
index.html

@@ -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,
-			args: ARGS,
-			env: ENV,
-			cwd: CWD
+			cmd: cmd,
+			args: args,
+			env: env,
+			cwd: cwd
 		}
 		}
 		if (typeof SharedArrayBuffer === "undefined")
 		if (typeof SharedArrayBuffer === "undefined")
 		{
 		{