kolla-ansible/tools/validate-links.sh

9 lines
194 B
Bash
Raw Normal View History

#!/bin/bash
REAL_PATH=$(python -c "import os,sys;print os.path.realpath('$0')")
cd "$(dirname "$REAL_PATH")/.."
if find . -type l -exec test ! -e {} \; -print | egrep '.*'; then
exit 1
fi