mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
ci_template: Don't use command substitution with find
GNU find has operations like -exec and -delete that operate without the brittleness of applying shell word splitting to its output. In addition, it won't fail if no files were matched.
This commit is contained in:
parent
61074f6d8d
commit
5b664cd00f
1 changed files with 2 additions and 2 deletions
|
@ -44,7 +44,7 @@ gst indent:
|
||||||
- indent --version || true
|
- indent --version || true
|
||||||
- curl -o gst-indent https://gitlab.freedesktop.org/gstreamer/gstreamer/raw/master/tools/gst-indent
|
- curl -o gst-indent https://gitlab.freedesktop.org/gstreamer/gstreamer/raw/master/tools/gst-indent
|
||||||
- chmod +x gst-indent
|
- chmod +x gst-indent
|
||||||
- ./gst-indent $(find . -name "*.c")
|
- find . -name '*.c' -exec ./gst-indent {} +
|
||||||
- |
|
- |
|
||||||
if [[ $(git diff) ]]; then
|
if [[ $(git diff) ]]; then
|
||||||
git diff --color=always
|
git diff --color=always
|
||||||
|
@ -80,7 +80,7 @@ gst indent:
|
||||||
after_script:
|
after_script:
|
||||||
- cd gst-build/
|
- cd gst-build/
|
||||||
# Clean the artifacts packages to avoid copying "useless" build products.
|
# Clean the artifacts packages to avoid copying "useless" build products.
|
||||||
- rm $(find build -name "*.o") $(find -name "*.a")
|
- test -d build && find build -name '*.[ao]' -delete
|
||||||
# Clean the .git repos since we won't need them anymore
|
# Clean the .git repos since we won't need them anymore
|
||||||
- rm -rf subprojects/*/.git/
|
- rm -rf subprojects/*/.git/
|
||||||
- rm -rf build/subprojects/*/.git/
|
- rm -rf build/subprojects/*/.git/
|
||||||
|
|
Loading…
Reference in a new issue