Add specify WP_VERSION in arguments

This commit is contained in:
xZero707
2021-09-23 17:44:41 +02:00
parent b8646bd85f
commit 6e78e79fa7
3 changed files with 13 additions and 4 deletions

View File

@@ -4,6 +4,7 @@ echo "> Downloading WordPress ${WP_VERSION} ..."
# Removes trailing zero if found
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}"
@@ -20,4 +21,4 @@ cp src/update-core.php src/mod-update-core.php
echo "> Files ready."
exit 0
exit 0