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