From e0bdf15b78e16df39305c7f1ed780d07035c9c0c Mon Sep 17 00:00:00 2001 From: Theo Chatzimichos Date: Dec 04 2017 20:13:30 +0000 Subject: bin/test_extension.sh: make it more strict by catching the dot --- diff --git a/bin/test_extension.sh b/bin/test_extension.sh index c6109f7..fb2b9e2 100755 --- a/bin/test_extension.sh +++ b/bin/test_extension.sh @@ -1,7 +1,7 @@ #!/bin/bash -NON_SLS_PILLAR=$(find pillar -type f | egrep -v "(macros.jinja|valid_custom_grains.yaml|.sls$)") -NON_SLS_SALT=$(find salt -type f | egrep -v "/(files|templates)/|pillar.example$|.sls$") +NON_SLS_PILLAR=$(find pillar -type f | egrep -v "(macros.jinja|valid_custom_grains.yaml|\.sls$)") +NON_SLS_SALT=$(find salt -type f | egrep -v "/(files|templates)/|pillar.example$|\.sls$") NON_SLS=( ${NON_SLS_PILLAR} ${NON_SLS_SALT} ) if [[ -n $NON_SLS ]]; then