From 7da72ce487a8d92d992e7fd3db881c198ae02609 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Tue, 13 Oct 2015 17:42:46 -0500 Subject: 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 37ed96fb..8aba4e0e 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 -- cgit v1.2.3