mirror of
https://github.com/N0rthernL1ghts/wordpress.git
synced 2024-11-23 10:51:10 +01:00
Update regex so only last zero matches
Fixes the bug with newer sed versions
This commit is contained in:
parent
6cbd0dd438
commit
a03f12990b
|
@ -3,7 +3,7 @@
|
|||
echo "> Downloading WordPress ${WP_VERSION} ..."
|
||||
|
||||
# Removes trailing zero if found
|
||||
WP_SHORT_VERSION=$(echo "${WP_VERSION}" | sed --expression='s/.0//g');
|
||||
WP_SHORT_VERSION=$(echo "${WP_VERSION}" | sed --expression='s/.0$//g');
|
||||
echo "> Short Version: ${WP_SHORT_VERSION}"
|
||||
|
||||
wp --allow-root --path="/tmp" core download --locale="${WP_LOCALE}" --version="${WP_SHORT_VERSION}"
|
||||
|
|
|
@ -7,7 +7,7 @@ DISABLE_WP_UPDATES="${ENFORCE_DISABLE_WP_UPDATES:-true}"
|
|||
# Removes trailing zero if found
|
||||
# This is required due to inconsistencies between WodPress docker image versioning and wp-cli core download
|
||||
# If patch version is 0, it is not considered by wp-cli.
|
||||
WP_VERSION=$(echo "${WP_VERSION}" | sed --expression='s/.0//g');
|
||||
WP_VERSION=$(echo "${WP_VERSION}" | sed --expression='s/.0$//g');
|
||||
|
||||
function disableUpdatesPatch() {
|
||||
if [ "${DISABLE_WP_UPDATES}" != "false" ]; then
|
||||
|
|
Loading…
Reference in New Issue
Block a user