Add a / to the end of directory matching regex
Fixes the case where changes to `onos-progran/*` would match `onos`
Change-Id: I62b5e6113ffb0822c8912bff77afd689770e7d4b
diff --git a/chart_version_check.sh b/chart_version_check.sh
index 8b80446..265a817 100755
--- a/chart_version_check.sh
+++ b/chart_version_check.sh
@@ -81,7 +81,7 @@
# create a list of files that were changed in the chart
for file in $changed_files; do
- if [[ $file =~ ^$chartdir ]]
+ if [[ $file =~ ^$chartdir/ ]]
then
chart_changed_files+=$'\n'
chart_changed_files+=" ${file}"