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:
parent
ad68d591e1
commit
bf84c426e0
@ -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…
x
Reference in New Issue
Block a user