TUN-8543: use -p flag to create intermediate directories

This commit is contained in:
lneto 2024-07-16 12:10:31 +01:00 committed by Luis Neto
parent 13b2e423ed
commit 26ae1ca3c8
1 changed files with 2 additions and 2 deletions

View File

@ -156,8 +156,8 @@ for arch in ${archs[@]}; do
ARCH_TARGET_DIRECTORY="${TARGET_DIRECTORY}/${arch}-build" ARCH_TARGET_DIRECTORY="${TARGET_DIRECTORY}/${arch}-build"
# creating build directory # creating build directory
rm -rf $ARCH_TARGET_DIRECTORY rm -rf $ARCH_TARGET_DIRECTORY
mkdir "${ARCH_TARGET_DIRECTORY}" mkdir -p "${ARCH_TARGET_DIRECTORY}"
mkdir "${ARCH_TARGET_DIRECTORY}/contents" mkdir -p "${ARCH_TARGET_DIRECTORY}/contents"
cp -r ".mac_resources/scripts" "${ARCH_TARGET_DIRECTORY}/scripts" cp -r ".mac_resources/scripts" "${ARCH_TARGET_DIRECTORY}/scripts"
# copy cloudflared into the build directory # copy cloudflared into the build directory