diff options
author | Sam James <sam@gentoo.org> | 2022-03-19 19:34:38 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-03-19 19:34:38 +0000 |
commit | 54a596d58eabec34fe6c8fa85ea86ccee98efb0e (patch) | |
tree | 1b8a797709e3e09407774eb7f2f5f8a27c83b0e6 | |
parent | check-eapis.sh: new script to list each ebuild using each EAPI (diff) | |
download | qa-scripts-54a596d58eabec34fe6c8fa85ea86ccee98efb0e.tar.gz qa-scripts-54a596d58eabec34fe6c8fa85ea86ccee98efb0e.tar.bz2 qa-scripts-54a596d58eabec34fe6c8fa85ea86ccee98efb0e.zip |
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@gentoo.org>
-rwxr-xr-x | check-eapis.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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 |