fix: remove - in tag

pull/220/head
sammyette 2022-12-19 21:37:33 -04:00
parent 0ba0dead53
commit 6f95ae6564
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD
2 changed files with 4 additions and 2 deletions

View File

@ -2,12 +2,12 @@
%global debug_package %{nil} %global debug_package %{nil}
Name: hilbish Name: hilbish
Version: 2.0.0-rc1 Version: 2.0.0.rc1
Release: 1%{?dist} Release: 1%{?dist}
Summary: The flower shell. A comfy and nice little shell for Lua fans! Summary: The flower shell. A comfy and nice little shell for Lua fans!
License: MIT License: MIT
Source: https://github.com/Rosettea/Hilbish/archive/refs/tags/v{{{ git_tag_version }}}.tar.gz Source: https://github.com/Rosettea/Hilbish/archive/refs/tags/v2.0.0-rc1.tar.gz
BuildRequires: git golang go-task BuildRequires: git golang go-task
Requires: inspect succulent lunacolors Requires: inspect succulent lunacolors

View File

@ -19,5 +19,7 @@ function git_tag_version {
if [[ $tag =~ ^v[0-9].* ]]; then if [[ $tag =~ ^v[0-9].* ]]; then
tag="${tag:1}" tag="${tag:1}"
fi fi
tag="${tag/"-"/"."}"
output "$tag" output "$tag"
} }