diff --git a/github/check.etherpad.update.sh b/github/check.etherpad.update.sh index e146af2..ddb9005 100755 --- a/github/check.etherpad.update.sh +++ b/github/check.etherpad.update.sh @@ -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 {{{