mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-22 19:16:32 +01:00
Set pipefail when supported
This commit is contained in:
parent
3896c1dfc9
commit
b42acc6624
4 changed files with 4 additions and 4 deletions
|
|
@ -1 +1 @@
|
||||||
1dbbcc42b293cdf558730a5c7e084422879b607bf14f42aa2168b0c8ebb2f2c1 script-generator
|
e1c9bbedd2aca20b10568c1303e2227e0d68f36bb8f1dfd6ac39e14342f3a9f7 script-generator
|
||||||
|
|
|
||||||
|
|
@ -410,7 +410,7 @@ FILE *start_script(int id, int bash_build) {
|
||||||
fputs("#!/bin/bash\n", out);
|
fputs("#!/bin/bash\n", out);
|
||||||
if (strcmp(get_var("INTERACTIVE"), "True") == 0) {
|
if (strcmp(get_var("INTERACTIVE"), "True") == 0) {
|
||||||
if (bash_build != 1) {
|
if (bash_build != 1) {
|
||||||
fputs("set -E\ntrap 'env PS1=\"[TRAP] \\w # \" bash -i' ERR\n", out);
|
fputs("set -eEo pipefail\ntrap 'env PS1=\"[TRAP] \\w # \" bash -i' ERR\n", out);
|
||||||
} else {
|
} else {
|
||||||
/* FIXME early bash has buggy ERR trap handling */
|
/* FIXME early bash has buggy ERR trap handling */
|
||||||
fputs("set -e\ntrap 'bash -c '\"'\"'while true; do printf \""
|
fputs("set -e\ntrap 'bash -c '\"'\"'while true; do printf \""
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
0cd30eb7753ae8907fed32e52af9219d115aa60d6333b48097d00f76d85a5d67 script-generator
|
ce952506148ebbd1d856e5f4d15be66b8292d2116f03861eb404420f75d2e7ce script-generator
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
572e849582ec2b79c768c7e8c61806141b3cd18ff1777e26433f12a2c92f093d script-generator
|
408442c1694654f3131246b99de4b66a5796077ffb59629039a321b1b973c938 script-generator
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue