openrc-run.sh: fix new required_* tests to exit properly

This commit is contained in:
William Hubbs 2015-10-13 17:42:46 -05:00
parent fc777aeaf3
commit 7da72ce487

View File

@ -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