Remove hyphen in version

This commit is contained in:
MatMoul 2023-07-16 01:57:33 +02:00
parent 028a40ee8c
commit 77df9b57f8
2 changed files with 4 additions and 4 deletions

View File

@ -33,7 +33,7 @@ plugin_getlatestversion() {
echo "Error in Github API" echo "Error in Github API"
return 1 return 1
fi fi
local -r GITHUBVERSION=${GITHUBTAGNAME//[[:alpha:]]/} local -r GITHUBVERSION=${GITHUBTAGNAME//[[:alpha:]-]/}
if [ "${GITHUBVERSION}" == "" ]; then if [ "${GITHUBVERSION}" == "" ]; then
echo "Error in Github API" echo "Error in Github API"
return 1 return 1
@ -58,7 +58,7 @@ plugin_update() {
echo "Error in Github API" echo "Error in Github API"
return 1 return 1
fi fi
local -r GITHUBVERSION=${GITHUBTAGNAME//[[:alpha:]]/} local -r GITHUBVERSION=${GITHUBTAGNAME//[[:alpha:]-]/}
if [ "${GITHUBVERSION}" == "" ]; then if [ "${GITHUBVERSION}" == "" ]; then
echo "Error in Github API" echo "Error in Github API"
return 1 return 1

View File

@ -33,7 +33,7 @@ plugin_getlatestversion() {
echo "Error in Github API" echo "Error in Github API"
return 1 return 1
fi fi
local -r GITHUBVERSION=${GITHUBTAGNAME//[[:alpha:]]/} local -r GITHUBVERSION=${GITHUBTAGNAME//[[:alpha:]-]/}
if [ "${GITHUBVERSION}" == "" ]; then if [ "${GITHUBVERSION}" == "" ]; then
echo "Error in Github API" echo "Error in Github API"
return 1 return 1
@ -58,7 +58,7 @@ plugin_update() {
echo "Error in Github API" echo "Error in Github API"
return 1 return 1
fi fi
local -r GITHUBVERSION=${GITHUBTAGNAME//[[:alpha:]]/} local -r GITHUBVERSION=${GITHUBTAGNAME//[[:alpha:]-]/}
if [ "${GITHUBVERSION}" == "" ]; then if [ "${GITHUBVERSION}" == "" ]; then
echo "Error in Github API" echo "Error in Github API"
return 1 return 1