mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
[ci] Add check to detect broken symlinks.
This commit is contained in:
parent
bfe8737898
commit
fee871775b
@ -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
scripts/check_symlinks.sh
Executable file
17
scripts/check_symlinks.sh
Executable 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 @@
|
||||
../../scripts/travis-emscripten/build_emscripten.sh
|
||||
build_emscripten.sh
|
Loading…
Reference in New Issue
Block a user