daml/dev-env/bin/dade-list-broken-symlinks
Digital Asset GmbH 05e691f558 open-sourcing daml
2019-04-04 09:33:38 +01:00

18 lines
408 B
Plaintext
Executable File

#!/usr/bin/env nix-shell
#! nix-shell -i bash -p coreutils --pure
# From
# http://unix.stackexchange.com/questions/34248/how-can-i-find-broken-symlinks
echo "Listing broken symlinks below $PWD:"
echo
find . -type l -! -exec test -e {} \; -print
echo
echo "Please be careful when removing broken links."
echo "Some of them are there on purpose."
echo "(e.g., the ones below 'dev-env/var/gc-roots')"
echo