mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-23 19:46:31 +01:00
Merge branch 'debug-trap' into bare-metal-full
This commit is contained in:
commit
8a7d17354e
1 changed files with 2 additions and 2 deletions
|
|
@ -437,9 +437,9 @@ FILE *start_script(int id, int using_bash) {
|
|||
fputs("#!/bin/bash\n", out);
|
||||
if (strcmp(get_var("INTERACTIVE"), "True") == 0) {
|
||||
if (using_bash != 1) {
|
||||
fputs("trap 'env PS1=\"[TRAP] \\w # \" bash -i' ERR\n", out);
|
||||
fputs("set -E\ntrap 'env PS1=\"[TRAP] \\w # \" bash -i' ERR\n", out);
|
||||
} else {
|
||||
fputs("trap 'bash -c '\"'\"'while true; do printf \""
|
||||
fputs("set -E\ntrap 'bash -c '\"'\"'while true; do printf \""
|
||||
"[TRAP - use Ctrl+D] $(pwd) # \"; $(cat); done'\"'\"'' ERR\n",
|
||||
out);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue