File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 2222# It _must_ preceed all the calls to die and assert.
2323shopt -s expand_aliases
2424
25- assert () {
26- local x pipestatus=( " ${PIPESTATUS[@]} " )
27- ___eapi_has_assert || die " '${FUNCNAME} ' banned in EAPI ${EAPI} "
28- for x in " ${pipestatus[@]} " ; do
29- [[ ${x} -eq 0 ]] || die " $@ "
30- done
31- }
32-
3325# Simplified version of pipestatus() for internal use
3426__pipestatus () {
3527 local status=( " ${PIPESTATUS[@]} " ) s ret=0
Original file line number Diff line number Diff line change @@ -28,6 +28,14 @@ if ! contains_word strip "${PORTAGE_RESTRICT}"; then
2828 PORTAGE_DOSTRIP+=( / )
2929fi
3030
31+ assert () {
32+ local x pipestatus=( " ${PIPESTATUS[@]} " )
33+ ___eapi_has_assert || die " '${FUNCNAME} ' banned in EAPI ${EAPI} "
34+ for x in " ${pipestatus[@]} " ; do
35+ [[ ${x} -eq 0 ]] || die " $@ "
36+ done
37+ }
38+
3139into () {
3240 if [[ " $1 " == " /" ]]; then
3341 export __E_DESTTREE=" "
You can’t perform that action at this time.
0 commit comments