From 77df9b57f846b528e11e8cecc4eb8fb592e4f9ff Mon Sep 17 00:00:00 2001 From: MatMoul Date: Sun, 16 Jul 2023 01:57:33 +0200 Subject: [PATCH] Remove hyphen in version --- plugins/github-release | 4 ++-- plugins/github-tag | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/github-release b/plugins/github-release index 863c395..c59673e 100644 --- a/plugins/github-release +++ b/plugins/github-release @@ -33,7 +33,7 @@ plugin_getlatestversion() { echo "Error in Github API" return 1 fi - local -r GITHUBVERSION=${GITHUBTAGNAME//[[:alpha:]]/} + local -r GITHUBVERSION=${GITHUBTAGNAME//[[:alpha:]-]/} if [ "${GITHUBVERSION}" == "" ]; then echo "Error in Github API" return 1 @@ -58,7 +58,7 @@ plugin_update() { echo "Error in Github API" return 1 fi - local -r GITHUBVERSION=${GITHUBTAGNAME//[[:alpha:]]/} + local -r GITHUBVERSION=${GITHUBTAGNAME//[[:alpha:]-]/} if [ "${GITHUBVERSION}" == "" ]; then echo "Error in Github API" return 1 diff --git a/plugins/github-tag b/plugins/github-tag index e12dd54..97d37ed 100644 --- a/plugins/github-tag +++ b/plugins/github-tag @@ -33,7 +33,7 @@ plugin_getlatestversion() { echo "Error in Github API" return 1 fi - local -r GITHUBVERSION=${GITHUBTAGNAME//[[:alpha:]]/} + local -r GITHUBVERSION=${GITHUBTAGNAME//[[:alpha:]-]/} if [ "${GITHUBVERSION}" == "" ]; then echo "Error in Github API" return 1 @@ -58,7 +58,7 @@ plugin_update() { echo "Error in Github API" return 1 fi - local -r GITHUBVERSION=${GITHUBTAGNAME//[[:alpha:]]/} + local -r GITHUBVERSION=${GITHUBTAGNAME//[[:alpha:]-]/} if [ "${GITHUBVERSION}" == "" ]; then echo "Error in Github API" return 1