From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 0E81F13888F for ; Tue, 13 Oct 2015 22:46:02 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 980F8E0783; Tue, 13 Oct 2015 22:45:59 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4077FE0653 for ; Tue, 13 Oct 2015 22:45:59 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 40AB834082B for ; Tue, 13 Oct 2015 22:45:58 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6DEE010B4 for ; Tue, 13 Oct 2015 22:45:56 +0000 (UTC) From: "William Hubbs" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "William Hubbs" Message-ID: <1444769475.fc777aeaf3e6e2d47f4599acfe6c8d1bf5bc760a.williamh@OpenRC> Subject: [gentoo-commits] proj/openrc:master commit in: sh/ X-VCS-Repository: proj/openrc X-VCS-Files: sh/openrc-run.sh.in X-VCS-Directories: sh/ X-VCS-Committer: williamh X-VCS-Committer-Name: William Hubbs X-VCS-Revision: fc777aeaf3e6e2d47f4599acfe6c8d1bf5bc760a X-VCS-Branch: master Date: Tue, 13 Oct 2015 22:45:56 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 2f3cc195-3fce-46e3-8e40-99cc543e72e6 X-Archives-Hash: abd7e688ee0091714185850821ed49e4 commit: fc777aeaf3e6e2d47f4599acfe6c8d1bf5bc760a Author: William Hubbs gmail com> AuthorDate: Tue Oct 13 20:50:59 2015 +0000 Commit: William Hubbs gentoo org> CommitDate: Tue Oct 13 20:51:15 2015 +0000 URL: https://gitweb.gentoo.org/proj/openrc.git/commit/?id=fc777aea typo fix X-Gentoo-Bug: 563010 X-Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=563010 sh/openrc-run.sh.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sh/openrc-run.sh.in b/sh/openrc-run.sh.in index e9369e4..37ed96f 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