diff --git a/dropshell-build/dropshell-build.sh b/dropshell-build/dropshell-build.sh index 0046c21..022ac2a 100755 --- a/dropshell-build/dropshell-build.sh +++ b/dropshell-build/dropshell-build.sh @@ -199,7 +199,9 @@ function build_arch() { ninja -j"${JOBS}" upx "${ARCH_BUILD_DIR}/${EXECUTABLE_NAME}" - mkdir -p "${OUTPUT_DIR}/${ARCH}" + if [ ! -d "${OUTPUT_DIR}" ]; then + mkdir -p "${OUTPUT_DIR}" + fi cp "${ARCH_BUILD_DIR}/${EXECUTABLE_NAME}" "${OUTPUT_DIR}/${EXECUTABLE_NAME}.${ARCH}" cd "${PREVDIR}" || exit 1