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 11BDF138BEF for ; Tue, 13 Oct 2015 22:45:00 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A1AB0E0783; Tue, 13 Oct 2015 22:44: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 4DCC0E0783 for ; Tue, 13 Oct 2015 22:44: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 17E5234097D for ; Tue, 13 Oct 2015 22:44:55 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 384B210B3 for ; Tue, 13 Oct 2015 22:44:52 +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: <1444771655.4e44e2cd73fb7fe08fb229bc3192d14f97dc2aa2.williamh@OpenRC> Subject: [gentoo-commits] proj/openrc:0.18.x 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: 4e44e2cd73fb7fe08fb229bc3192d14f97dc2aa2 X-VCS-Branch: 0.18.x Date: Tue, 13 Oct 2015 22:44:52 +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: 0a37c242-31c3-41f5-aeb8-0e96a99ef01d X-Archives-Hash: 13a07a3dff6a924f73058057d513180e commit: 4e44e2cd73fb7fe08fb229bc3192d14f97dc2aa2 Author: William Hubbs gmail com> AuthorDate: Tue Oct 13 20:50:59 2015 +0000 Commit: William Hubbs gentoo org> CommitDate: Tue Oct 13 21:27:35 2015 +0000 URL: https://gitweb.gentoo.org/proj/openrc.git/commit/?id=4e44e2cd 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