From 0b5cf4e5fdec5337e45af4015885a45191067aac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Sat, 8 Apr 2023 17:27:32 +0100 Subject: [PATCH] ci: add check for symlinks Part-of: --- .gitlab-ci.yml | 1 + ci/check-for-symlinks.sh | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100755 ci/check-for-symlinks.sh diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d1caf896..b85b9d9b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -417,6 +417,7 @@ check commits: - when: 'always' script: - ci-fairy check-commits --textwidth 0 --no-signed-off-by + - ci/check-for-symlinks.sh clippy: extends: .img-stable diff --git a/ci/check-for-symlinks.sh b/ci/check-for-symlinks.sh new file mode 100755 index 00000000..ed71898f --- /dev/null +++ b/ci/check-for-symlinks.sh @@ -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