Browse Source

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
changes/04/773104/3
Owen McGonagle 1 year ago
parent
commit
bf84c426e0
  1. 2
      scripts/run-validations.sh

2
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

Loading…
Cancel
Save