mirror of
https://github.com/N0rthernL1ghts/wordpress.git
synced 2025-12-09 16:12:40 +01:00
Add specify WP_VERSION in arguments
This commit is contained in:
@@ -1,8 +1,15 @@
|
||||
#!/usr/bin/env sh
|
||||
set -e
|
||||
|
||||
WP_VERSION="${1:-}"
|
||||
|
||||
if [ -z "${WP_VERSION}" ]; then
|
||||
echo "> Error: WP_VERSION is not specified"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "> Building helper image..."
|
||||
docker build -t local/wp-patch-util .
|
||||
docker build --build-arg "WP_VERSION=${WP_VERSION}" -t local/wp-patch-util .
|
||||
mkdir wp-src/ -p
|
||||
echo ""
|
||||
echo "> Running helper container..."
|
||||
@@ -22,4 +29,4 @@ echo "wp_die("
|
||||
echo " __( 'Sorry, you are not allowed to update this site.' ) ."
|
||||
echo " ' Click <a href=\"https://github.com/N0rthernL1ghts/wordpress/wiki/WordPress-Core-Updates\">here</a> to learn why.'"
|
||||
echo ");"
|
||||
echo ""
|
||||
echo ""
|
||||
|
||||
Reference in New Issue
Block a user