Skip to content

Commit 7fded69

Browse files
authored
Merge pull request #2480 from nschonni/bump-shellcheck
ci: Use GitHub Action for ShellCheck
2 parents e062450 + 3e97327 commit 7fded69

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/shfmt.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
pull_request:
55
paths:
66
- "**/*.sh"
7+
- ".github/workflows/shfmt.yml"
78

89
permissions:
910
contents: read
@@ -20,4 +21,5 @@ jobs:
2021
runs-on: ubuntu-latest
2122
steps:
2223
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
23-
- run: shellcheck *.sh
24+
- name: Run ShellCheck
25+
uses: bewuethr/shellcheck-action@80bac2daa9fcf95d648200a793d00060857e6dc4 # v2.3.0

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)