From 6cd050f5410323e2767bed8d662555267534b1e1 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 2 Aug 2019 13:46:10 +1000 Subject: [PATCH] release.sh: fix version number replacement sed treats . as "any character", so this breaks if we have a 0.10 version number. Signed-off-by: Peter Hutterer --- release.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/release.sh b/release.sh index e73d40c5..185b4d4b 100755 --- a/release.sh +++ b/release.sh @@ -314,11 +314,11 @@ process_module() { pkg_version=$($GREP -m 1 '^ version : ' meson.build | sed 's| version : \([^\s,]*\).*|\1|' | sed "s/'//g") tar_name="$pkg_name-$pkg_version" targz=$tar_name.tar.gz - tag_name=$(echo "v$pkg_version" | sed 's|.0$||') + tag_name=$(echo "v$pkg_version" | sed 's|\.0$||') # Now get the tarballs from github directly to compute their checksum remote_targz_url=$remote_url_root/$tag_name/$targz - echo "downloading the tarbal from $remote_targz_url" + echo "downloading the tarball from $remote_targz_url" curl $remote_targz_url > $targz # Obtain the top commit SHA which should be the version bump