Remove "v" prefix from github tag

This commit is contained in:
Jeremy Gardais 2023-08-02 14:38:04 +02:00
parent f52848491f
commit 625d6054c8
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 3 additions and 3 deletions

View File

@ -51,7 +51,7 @@ EXAMPLES:
${PROGNAME}
- Check Etherpad version from a specific location
${PROGNAME} --directory /var/www/my_etherpad
${PROGNAME} --directory /srv/www/my_etherpad
OPTIONS:
--debug
@ -148,9 +148,9 @@ main() { # {{{
## }}}
## Get latest version from project repository {{{
### OR Exit with error message
etherpad_latest_version=$("${PROGDIR}/releasetags" "${ETHERPAD_REPO_URL}" | head --lines=1 \
etherpad_latest_version=$("${PROGDIR}/releasetags" "${ETHERPAD_REPO_URL}" | head --lines=1 | sed 's/v//' \
|| error_message "Can't get latest Etherpad version from repository (${ETHERPAD_REPO_URL})." 02 )
debug_message "main Etherpad installed version : ${RED}${etherpad_latest_version}${COLOR_DEBUG} (from ${ETHERPAD_REPO_URL} project repository)."
debug_message "main Etherpad available version : ${RED}${etherpad_latest_version}${COLOR_DEBUG} (from ${ETHERPAD_REPO_URL} project repository)."
## }}}
## If any of the two variables is empty {{{