4
0
Эх сурвалжийг харах

Merge pull request #2513 from originaltrini0/fix-issue-#2013

Fix missing version number while building step-ca from source archive
Herman Slatman 11 сар өмнө
parent
commit
eb10da17b8
1 өөрчлөгдсөн 5 нэмэгдсэн , 3 устгасан
  1. 5 3
      .version.sh

+ 5 - 3
.version.sh

@@ -1,7 +1,9 @@
 #!/usr/bin/env sh
 read -r firstline < .VERSION
 last_half="${firstline##*tag: }"
-if [[ ${last_half::1} == "v" ]]; then
-    version_string="${last_half%%[,)]*}"
-fi
+case "$last_half" in
+    v*)
+        version_string="${last_half%%[,)]*}"
+        ;;
+esac
 echo "${version_string:-v0.0.0}"