From bf84c426e001d3500f421364c9640de475aeb5dd Mon Sep 17 00:00:00 2001 From: Owen McGonagle Date: Fri, 29 Jan 2021 10:36:22 -0500 Subject: [PATCH] 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 Change-Id: I60c8703e06fb8e399dce0f009e434d0cc3731e64 --- scripts/run-validations.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/run-validations.sh b/scripts/run-validations.sh index 45ace9901..1a9c2816a 100755 --- a/scripts/run-validations.sh +++ b/scripts/run-validations.sh @@ -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