File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 pull_request :
55 paths :
66 - " **/*.sh"
7+ - " .github/workflows/shfmt.yml"
78
89permissions :
910 contents : read
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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments