commit: 7da72ce487a8d92d992e7fd3db881c198ae02609 Author: William Hubbs <w.d.hubbs <AT> gmail <DOT> com> AuthorDate: Tue Oct 13 22:42:46 2015 +0000 Commit: William Hubbs <williamh <AT> gentoo <DOT> org> CommitDate: Tue Oct 13 22:45:05 2015 +0000 URL: https://gitweb.gentoo.org/proj/openrc.git/commit/?id=7da72ce4
openrc-run.sh: fix new required_* tests to exit properly sh/openrc-run.sh.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sh/openrc-run.sh.in b/sh/openrc-run.sh.in index 37ed96f..8aba4e0 100644 --- a/sh/openrc-run.sh.in +++ b/sh/openrc-run.sh.in @@ -227,6 +227,7 @@ eval "printf '%s\n' $required_dirs" | while read _d; do exit 1 fi done +[ $? -ne 0 ] && exit 1 unset _d eval "printf '%s\n' $required_files" | while read _f; do @@ -235,6 +236,7 @@ eval "printf '%s\n' $required_files" | while read _f; do exit 1 fi done +[ $? -ne 0 ] && exit 1 unset _f if [ -n "$opts" ]; then