Browse Source

Do not allow version-illegal characters

Alois Mahdal 7 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
     git ls-remote --tag "$UrlBase" \
40
     git ls-remote --tag "$UrlBase" \
41
       | grep '/tags/' \
41
       | grep '/tags/' \
42
       | cut -d/ -f3 \
42
       | cut -d/ -f3 \
43
+      | grep -v '[^0-9a-z.]' \
43
       | sort -V \
44
       | sort -V \
44
       | tail -1 \
45
       | tail -1 \
45
       | sed "s/^v//"
46
       | sed "s/^v//"