mirror of
https://github.com/N0rthernL1ghts/wordpress.git
synced 2025-12-10 10:32:39 +01:00
Add specify WP_VERSION in arguments
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user