Parcourir la source

build: fix package version regexp match pattern

Zaiming (Stone) Shi il y a 4 ans
Parent
commit
cfc3c076bb
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      build

+ 1 - 1
build

@@ -65,7 +65,7 @@ make_relup() {
     if [ -d "$releases_dir" ]; then
     if [ -d "$releases_dir" ]; then
         while read -r zip; do
         while read -r zip; do
             local base_vsn
             local base_vsn
-            base_vsn="$(echo "$zip" | grep -oE "[0-9]+\.[0-9]+\.[0-9]+(-[0-9a-e]{8})?")"
+            base_vsn="$(echo "$zip" | grep -oE "[0-9]+\.[0-9]+\.[0-9]+(-[0-9a-f]{8})?")"
             if [ ! -d "$releases_dir/$base_vsn" ]; then
             if [ ! -d "$releases_dir/$base_vsn" ]; then
                 local tmp_dir
                 local tmp_dir
                 tmp_dir="$(mktemp -d -t emqx.XXXXXXX)"
                 tmp_dir="$(mktemp -d -t emqx.XXXXXXX)"