From 17de854fcea1f2fbc255c5caf33aed661d57b638 Mon Sep 17 00:00:00 2001 From: SamTV12345 <40429738+samtv12345@users.noreply.github.com> Date: Sat, 5 Aug 2023 22:25:01 +0200 Subject: [PATCH] Create temp directories. --- src/bin/buildForWindows.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/bin/buildForWindows.sh b/src/bin/buildForWindows.sh index ee78357b3..e19987e3b 100755 --- a/src/bin/buildForWindows.sh +++ b/src/bin/buildForWindows.sh @@ -28,6 +28,9 @@ TMP_FOLDER=$(try mktemp -d) || exit 1 trap 'exit 1' HUP INT TERM trap 'log "cleaning up..."; try cd / && try rm -rf "${TMP_FOLDER}"' EXIT +try mkdir "${TMP_FOLDER}"/tests +try mkdir "${TMP_FOLDER}"/node_modules + log "create a clean environment in $TMP_FOLDER..." try git archive --format=tar HEAD | (try cd "${TMP_FOLDER}" && ls -lisa && try tar xf -) \ || fatal "failed to copy etherpad to temporary folder"