Merge pull request #10338 from ethereum/add-check-for-broken-symlinks

[ci] Add check to detect broken symlinks.
This commit is contained in:
chriseth
2020-11-19 11:55:25 +01:00
committed by GitHub
3 changed files with 21 additions and 1 deletions
+3
View File
@@ -332,6 +332,9 @@ jobs:
- run:
name: checking shell scripts
command: ./scripts/chk_shellscripts/chk_shellscripts.sh
- run:
name: Check for broken symlinks
command: ./scripts/check_symlinks.sh
chk_errorcodes:
docker:
+17
View File
@@ -0,0 +1,17 @@
#!/usr/bin/env bash
set -e
REPO_ROOT="$(dirname "$0")"/..
REPO_ROOT=$(realpath "${REPO_ROOT}")
BROKEN_LINKS=$(find -L "${REPO_ROOT}" -type l -ls)
if [ -z "${BROKEN_LINKS}" ]
then
exit 0
else
echo "broken symbolic link(s) found:"
echo "${BROKEN_LINKS}"
exit 1
fi
+1 -1
View File
@@ -1 +1 @@
../../scripts/travis-emscripten/build_emscripten.sh
build_emscripten.sh