X-Git-Url: https://git.decadent.org.uk/gitweb/?p=dak.git;a=blobdiff_plain;f=scripts%2Fdebian%2Fbyhand-di;h=3ba2f0057310ebcceac24592c2226c30c9301cf6;hp=45b473b2a7353f16511057df241507398b4369a3;hb=14c267e0eaa8b921307574f6c10cd3964ee0a381;hpb=76401d1f507093f5c9c9a4a50632dd6f93dd35d3 diff --git a/scripts/debian/byhand-di b/scripts/debian/byhand-di index 45b473b2..3ba2f005 100755 --- a/scripts/debian/byhand-di +++ b/scripts/debian/byhand-di @@ -22,7 +22,7 @@ error() { # Check validity of version number # Expected are: YYYYMMDD, YYYYMMDD.x, YYYYMMDDx, YYYYMMDD+x, # YYYYMMDD+debXuZ and the +b[0-9] on the end -if ! echo "$VERSION" | grep -Eq "^[0-9]{8}(|(\.|\+?[a-z]+|\+deb[0-9]+u))[0-9]+(\+b[0-9])?$"; then +if ! echo "$VERSION" | grep -Eq "^[0-9]{8}((\.|\+?[a-z]+|\+deb[0-9]+u)[0-9]+)?(\+b[0-9])?$"; then error "Invalid version: '$VERSION'" fi