From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1377549-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 97AEB15808B for <garchives@archives.gentoo.org>; Sat, 19 Mar 2022 19:35:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BB6CCE0966; Sat, 19 Mar 2022 19:35:00 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 488E3E0966 for <gentoo-commits@lists.gentoo.org>; Sat, 19 Mar 2022 19:35:00 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 028A4343957 for <gentoo-commits@lists.gentoo.org>; Sat, 19 Mar 2022 19:34:59 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 629ED31A for <gentoo-commits@lists.gentoo.org>; Sat, 19 Mar 2022 19:34:57 +0000 (UTC) From: "Sam James" <sam@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" <sam@gentoo.org> Message-ID: <1647718478.54a596d58eabec34fe6c8fa85ea86ccee98efb0e.sam@gentoo> Subject: [gentoo-commits] proj/qa-scripts:master commit in: / X-VCS-Repository: proj/qa-scripts X-VCS-Files: check-eapis.sh X-VCS-Directories: / X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 54a596d58eabec34fe6c8fa85ea86ccee98efb0e X-VCS-Branch: master Date: Sat, 19 Mar 2022 19:34:57 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: b677203f-e763-4cda-b985-e45a6cdca7e5 X-Archives-Hash: cfaaf5243d3384528c01e9bd7caa198a commit: 54a596d58eabec34fe6c8fa85ea86ccee98efb0e Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Sat Mar 19 19:34:38 2022 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sat Mar 19 19:34:38 2022 +0000 URL: https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=54a596d5 check-eapis.sh: fix bailout-if-not-dir check We only want to quit if it's been given and is not a dir but does exist. Signed-off-by: Sam James <sam <AT> gentoo.org> check-eapis.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check-eapis.sh b/check-eapis.sh index cfd58a1..78fa30a 100755 --- a/check-eapis.sh +++ b/check-eapis.sh @@ -4,7 +4,7 @@ . /lib/gentoo/functions.sh dir=${1} -if [[ -n ${1} && ! -d ${dir} ]] ; then +if [[ -n ${1} && -e ${dir} && ! -d ${dir} ]] ; then eerror "Output directory given (${dir}) is not a directory! Exiting." exit 1 elif [[ -z ${dir} ]] ; then