Modify find to use -H to support symbolic links

Use -H switch on find command to follow symbolic links for
find command line arguments.

Co-authored-by: Daniel Bengtsson <dbengt@redhat.com>

Change-Id: I60c8703e06fb8e399dce0f009e434d0cc3731e64
This commit is contained in:
Owen McGonagle 2021-01-29 10:36:22 -05:00
parent ad68d591e1
commit bf84c426e0
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ fi
VALIDATIONS_BASEDIR=${VALIDATIONS_BASEDIR:="/usr/share/openstack-tripleo-validations"}
VAL=$(find $VALIDATIONS_BASEDIR/playbooks -type f -regex ".*playbooks\/${VALIDATION}\.y[a]?ml")
VAL=$(find -H $VALIDATIONS_BASEDIR/playbooks -type f -regex ".*playbooks\/${VALIDATION}\.y[a]?ml")
if [[ -z ${VAL} ]]; then
echo "The ${VALIDATION} validation doesn't exist"
exit 1