X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=scripts%2Fdebian%2Fbyhand-di;h=99cb313152555496227c56f751cad15f8e66d9a8;hb=904ac9b520fb3a9449a42f7f26e71c372789227d;hp=9e1b0512d0934201e1dca39dcfb9857b85cdb07f;hpb=587510bf3b36c23e76756144f765304321287397;p=dak.git diff --git a/scripts/debian/byhand-di b/scripts/debian/byhand-di index 9e1b0512..99cb3131 100755 --- a/scripts/debian/byhand-di +++ b/scripts/debian/byhand-di @@ -19,8 +19,8 @@ error() { } # Check validity of version number -# Expected are: YYYYMMDD, YYYYMMDD.x, YYYYMMDDx and the +b[0-9] on the end -if ! echo "$VERSION" | grep -Eq "^[0-9]{8}(|(\.|[a-z]+)[0-9]+)(\+b[0-9])?$"; then +# Expected are: YYYYMMDD, YYYYMMDD.x, YYYYMMDDx, YYYYMMDD+x and the +b[0-9] on the end +if ! echo "$VERSION" | grep -Eq "^[0-9]{8}(|(\.|\+?[a-z]+)[0-9]+)(\+b[0-9])?$"; then error "Invalid version: '$VERSION'" fi