Skip to content

Commit 90f159d

Browse files
committed
fix regex
1 parent 725f609 commit 90f159d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎hack/gen_versions_map.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ resolved_miss_map=$(
3232
set -x
3333
# if commit is not HEAD, check if it's valid
3434
if [ $commit != "HEAD" ]; then
35-
if ! git show "${commit}:./${chart}/Chart.yaml" 2>/dev/null | grep -q "^version: $version$"; then
35+
if ! git show "${commit}:./${chart}/Chart.yaml" 2>/dev/null | grep -q "^version: $version\s*$"; then
3636
echo "Commit $commit for $chart $version is not valid" >&2
3737
exit 1
3838
fi

0 commit comments

Comments
 (0)