mirror of
https://github.com/N0rthernL1ghts/wordpress.git
synced 2024-11-23 14:13:27 +01:00
Fix path traverse error that caused patch to be copied to the incorrect location
This commit is contained in:
parent
d805f0e76f
commit
7d7ee64551
|
@ -49,11 +49,11 @@ echo "> Patch file created ${PATCH_FILE}"
|
|||
if [ -n "${WP_VERSION}" ]; then
|
||||
echo "> WordPress version defined: ${WP_VERSION}"
|
||||
echo "> Copying the patch file..."
|
||||
mkdir "../../patches/${WP_VERSION}" -p
|
||||
cp -v "./${PATCH_FILE}" "../../patches/${WP_VERSION}/"
|
||||
mkdir "../../../patches/${WP_VERSION}" -p
|
||||
cp -v "./${PATCH_FILE}" "../../../patches/${WP_VERSION}/"
|
||||
else
|
||||
echo "> Please run: "
|
||||
echo " cp './wp-src/${PATCH_FILE}' '../../patches/5.x.x/'"
|
||||
echo " cp './wp-src/${PATCH_FILE}' '../../../patches/5.x.x/'"
|
||||
fi
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user