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