mirror of
https://github.com/N0rthernL1ghts/wordpress.git
synced 2025-12-09 04:52:40 +01:00
Update regex so only last zero matches
Fixes the bug with newer sed versions
This commit is contained in:
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user