Skip to content

Commit 3e97327

Browse files
committed
chore: use -e instead of -a for ShellCheck SC2331
1 parent d2065b4 commit 3e97327

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

functions.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ function get_supported_arches() {
105105
lines=$(grep "${variant}" "$(dirname "${version}")"/architectures 2> /dev/null | cut -d' ' -f1)
106106

107107
# Get version specific supported architectures if there is specialized information
108-
if [ -a "${version}"/architectures ]; then
108+
if [ -e "${version}"/architectures ]; then
109109
lines=$(grep "${variant}" "${version}"/architectures 2> /dev/null | cut -d' ' -f1)
110110
fi
111111

@@ -150,7 +150,7 @@ function get_versions() {
150150
fi
151151

152152
for dir in "${dirs[@]}"; do
153-
if [ -a "${dir}/Dockerfile" ] || [ -a "${dir}/${default_variant}/Dockerfile" ]; then
153+
if [ -e "${dir}/Dockerfile" ] || [ -e "${dir}/${default_variant}/Dockerfile" ]; then
154154
versions+=("${dir#./}")
155155
fi
156156
done

0 commit comments

Comments
 (0)