From 7d7ee64551bb51e35c6c62bf48e957fbd48b9a06 Mon Sep 17 00:00:00 2001 From: xZero707 Date: Sat, 15 Jan 2022 06:17:26 +0100 Subject: [PATCH] Fix path traverse error that caused patch to be copied to the incorrect location --- build/patch-util/01-create-patch.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build/patch-util/01-create-patch.sh b/build/patch-util/01-create-patch.sh index 9d0c34a..9aa9d22 100755 --- a/build/patch-util/01-create-patch.sh +++ b/build/patch-util/01-create-patch.sh @@ -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