Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 444480 Details for
Bug 592470
sys-apps/gentoo-functions: consoletype failure aborts scripts with set -e
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Prevent consoletype failure from aborting scripts with set -e
0001-Prevent-consoletype-failure-from-aborting-scripts-wi.patch (text/plain), 791 bytes, created by
James Le Cuirot
on 2016-08-30 20:43:19 UTC
(
hide
)
Description:
Prevent consoletype failure from aborting scripts with set -e
Filename:
MIME Type:
Creator:
James Le Cuirot
Created:
2016-08-30 20:43:19 UTC
Size:
791 bytes
patch
obsolete
>From a1dca3632af0389a902a09e01df732b16986ebf8 Mon Sep 17 00:00:00 2001 >From: James Le Cuirot <chewi@gentoo.org> >Date: Tue, 30 Aug 2016 21:34:31 +0100 >Subject: [PATCH 1/2] Prevent consoletype failure from aborting scripts with > set -e > >--- > functions.sh | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/functions.sh b/functions.sh >index 82cde51..9d47e6c 100644 >--- a/functions.sh >+++ b/functions.sh >@@ -421,7 +421,7 @@ RC_DOT_PATTERN='' > # have a TTY. rc unsets it at the end of running so it shouldn't hang > # around > if [ -z "${CONSOLETYPE}" ] ; then >- CONSOLETYPE="$(consoletype stdout 2>/dev/null )"; export CONSOLETYPE >+ CONSOLETYPE="$(! consoletype stdout 2>/dev/null)"; export CONSOLETYPE > fi > if [ "${CONSOLETYPE}" = "serial" ] ; then > RC_NOCOLOR="yes" >-- >2.8.2 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 592470
: 444480 |
444482