diff options
author | William Hubbs <w.d.hubbs@gmail.com> | 2015-10-13 15:50:59 -0500 |
---|---|---|
committer | William Hubbs <w.d.hubbs@gmail.com> | 2015-10-13 15:51:15 -0500 |
commit | fc777aeaf3e6e2d47f4599acfe6c8d1bf5bc760a (patch) | |
tree | af1688d6d4be6237a542a3dcce087ac3a8b3dd67 | |
parent | 9d53d436ae22d6f0f6fc1537e836dd1b4d31cf35 (diff) |
typo fix
X-Gentoo-Bug: 563010
X-Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=563010
-rw-r--r-- | sh/openrc-run.sh.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sh/openrc-run.sh.in b/sh/openrc-run.sh.in index e9369e44..37ed96fb 100644 --- a/sh/openrc-run.sh.in +++ b/sh/openrc-run.sh.in @@ -222,7 +222,7 @@ done sourcex "$RC_SERVICE" eval "printf '%s\n' $required_dirs" | while read _d; do - if [ ! -d "$_d" ]; then + if [ -n "$_d" ] && [ ! -d "$_d" ]; then eerror "$RC_SVCNAME: \`$_d' is not a directory" exit 1 fi @@ -230,7 +230,7 @@ done unset _d eval "printf '%s\n' $required_files" | while read _f; do - if [ ! -r "$_f" ]; then + if [ -n "$_f" ] && [ ! -r "$_f" ]; then eerror "$RC_SVCNAME: \`$_f' is not readable" exit 1 fi |