ci: add check for symlinks

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1169>
This commit is contained in:
Tim-Philipp Müller 2023-04-08 17:27:32 +01:00
parent 7c30430320
commit 0b5cf4e5fd
2 changed files with 13 additions and 0 deletions

View file

@ -417,6 +417,7 @@ check commits:
- when: 'always' - when: 'always'
script: script:
- ci-fairy check-commits --textwidth 0 --no-signed-off-by - ci-fairy check-commits --textwidth 0 --no-signed-off-by
- ci/check-for-symlinks.sh
clippy: clippy:
extends: .img-stable extends: .img-stable

12
ci/check-for-symlinks.sh Executable file
View file

@ -0,0 +1,12 @@
#!/bin/bash
LINKS=`find -type l`
if test -z $LINKS; then
echo "No symlinks found."
else
echo "===> FOUND SYMLINKS!"
echo
echo "$LINKS"
echo
echo "Please replace these with actual files."
exit 1;
fi