1 |
X-Gentoo-Bug: 573056 |
2 |
--- |
3 |
bin/isolated-functions.sh | 11 ++++++----- |
4 |
1 file changed, 6 insertions(+), 5 deletions(-) |
5 |
|
6 |
diff --git a/bin/isolated-functions.sh b/bin/isolated-functions.sh |
7 |
index 5766921..e320f71 100644 |
8 |
--- a/bin/isolated-functions.sh |
9 |
+++ b/bin/isolated-functions.sh |
10 |
@@ -1,5 +1,5 @@ |
11 |
#!/bin/bash |
12 |
-# Copyright 1999-2014 Gentoo Foundation |
13 |
+# Copyright 1999-2016 Gentoo Foundation |
14 |
# Distributed under the terms of the GNU General Public License v2 |
15 |
|
16 |
source "${PORTAGE_BIN_PATH}/eapi.sh" || exit 1 |
17 |
@@ -124,10 +124,11 @@ die() { |
18 |
set +x # tracing only produces useless noise here |
19 |
local IFS=$' \t\n' |
20 |
|
21 |
- if ___eapi_die_can_respect_nonfatal; then |
22 |
- if [[ ${1} == -n ]]; then |
23 |
- [[ ${PORTAGE_NONFATAL} == 1 ]] && return 1 |
24 |
- shift |
25 |
+ if ___eapi_die_can_respect_nonfatal && [[ $1 == -n ]]; then |
26 |
+ shift |
27 |
+ if [[ ${PORTAGE_NONFATAL} == 1 ]]; then |
28 |
+ [[ $# -gt 0 ]] && eerror "$*" |
29 |
+ return 1 |
30 |
fi |
31 |
fi |
32 |
|
33 |
-- |
34 |
2.7.0 |