From fa08971ddcde8f9b147649c07e5ed40823829b02 Mon Sep 17 00:00:00 2001 From: RichardG867 Date: Mon, 14 Feb 2022 11:57:12 -0300 Subject: [PATCH] Jenkins: Move archive_tmp creation further down for logging coherency purposes --- .ci/build.sh | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.ci/build.sh b/.ci/build.sh index a29e0ebba..91ce79ca3 100644 --- a/.ci/build.sh +++ b/.ci/build.sh @@ -356,16 +356,6 @@ then exit 4 fi -# Create temporary directory for archival. -echo [-] Gathering archive files -rm -rf archive_tmp -mkdir archive_tmp -if [ ! -d "archive_tmp" ] -then - echo [!] Archive directory creation failed - exit 5 -fi - # Download Discord Game SDK from their CDN if necessary. if [ ! -e "discord_game_sdk.zip" ] then @@ -386,6 +376,16 @@ case $arch in *) arch_discord="$arch";; esac +# Create temporary directory for archival. +echo [-] Gathering archive files +rm -rf archive_tmp +mkdir archive_tmp +if [ ! -d "archive_tmp" ] +then + echo [!] Archive directory creation failed + exit 5 +fi + # Archive the executable and its dependencies. # The executable should always be archived last for the check after this block. status=0