File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -21,15 +21,14 @@ jobs:
2121 pip install meson --break-system-packages
2222
2323 - name : Check Files
24- run : >
25- git ls-files
26- --exclude='meson.build'
27- --exclude='meson.options'
28- --exclude='meson_options.txt'
29- --ignored -c -z | xargs -0r
30- meson format --check-only -c ./meson.format
31- || (echo "Not all meson files are formatted correctly" && exit 1)
32- && echo "All meson files are formatted correctly"
24+ run : |
25+ git ls-files --exclude='meson.build' --exclude='meson.options' --exclude='meson_options.txt' --ignored -c -z | xargs -0r meson format --check-only -c ./meson.format
26+ if [ $? -eq 0 ]; then
27+ echo "All meson files are formatted correctly"
28+ else
29+ echo "Not all meson files are formatted correctly"
30+ exit 1
31+ fi
3332
3433 # # TODO: use mesonlint from
3534 # # https://github.com/JCWasmx86/mesonlsp
You can’t perform that action at this time.
0 commit comments