mirror of
https://github.com/N0rthernL1ghts/wordpress.git
synced 2024-11-27 05:25:44 +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
|
if [ -n "${WP_VERSION}" ]; then
|
||||||
echo "> WordPress version defined: ${WP_VERSION}"
|
echo "> WordPress version defined: ${WP_VERSION}"
|
||||||
echo "> Copying the patch file..."
|
echo "> Copying the patch file..."
|
||||||
mkdir "../../patches/${WP_VERSION}" -p
|
mkdir "../../../patches/${WP_VERSION}" -p
|
||||||
cp -v "./${PATCH_FILE}" "../../patches/${WP_VERSION}/"
|
cp -v "./${PATCH_FILE}" "../../../patches/${WP_VERSION}/"
|
||||||
else
|
else
|
||||||
echo "> Please run: "
|
echo "> Please run: "
|
||||||
echo " cp './wp-src/${PATCH_FILE}' '../../patches/5.x.x/'"
|
echo " cp './wp-src/${PATCH_FILE}' '../../../patches/5.x.x/'"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user