Browse Source

Do not allow version-illegal characters

Alois Mahdal 6 years ago
parent
commit
1e04699749
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      trigger_copr

+ 1
- 0
trigger_copr View File

@@ -40,6 +40,7 @@ last_version() {
40 40
     git ls-remote --tag "$UrlBase" \
41 41
       | grep '/tags/' \
42 42
       | cut -d/ -f3 \
43
+      | grep -v '[^0-9a-z.]' \
43 44
       | sort -V \
44 45
       | tail -1 \
45 46
       | sed "s/^v//"