From 1bfe163dfff6adb8f1bab13726a6ff5e31aef78e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Theilgaard?= Date: Tue, 16 Nov 2021 10:01:19 +0100 Subject: [PATCH] Update buildLabel.sh --- utils/buildLabel.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/buildLabel.sh b/utils/buildLabel.sh index e79c3fb..cf1fa08 100755 --- a/utils/buildLabel.sh +++ b/utils/buildLabel.sh @@ -252,7 +252,7 @@ if echo "$downloadURL" | grep -i "github.com.*releases/download"; then echo "Try running again with URL: ${githubDownloadURL}" else echo "Not a version problem.\nTesting for difference in archiveName." - tempName=$(echo ${archiveName%.*} | grep -o "[0-9.]*") + tempName=$(echo ${archiveName%.*} | grep -o "[0-9.]*" | tail -1) archiveDestinationName="$(echo $archiveName | sed -E "s/^(.*)$tempName(.*)$/\1[0-9.]*\2/g")" echo "archiveName=\"$archiveDestinationName\"" githubDownloadURL=$(downloadURLFromGit "$githubAuthor" "$githubRepo") @@ -318,7 +318,7 @@ case $githubError in 2) echo "\nFound Github place in this URL: $githubAuthor $githubRepo" echo "But it could not be resolved." - echo "Can be from a hidden repository." + echo "Can be from a hidden repository, or the software title has a number in it." ;; esac