Jenkins: Move archive_tmp creation further down for logging coherency purposes

This commit is contained in:
RichardG867
2022-02-14 11:57:12 -03:00
parent 70219ec6a2
commit fa08971ddc

View File

@@ -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