Signed-off-by: crueter <crueter@eden-emu.dev>
This commit is contained in:
crueter 2025-11-19 11:17:45 -05:00
parent beb58f8488
commit ecfdcf71d5
No known key found for this signature in database
GPG key ID: 425ACD2D4830EBC6

View file

@ -84,9 +84,15 @@ upload_release() {
# It is expanded using "${assets[@]}" which preserves the separation of arguments and not split whitespace containing values. # It is expanded using "${assets[@]}" which preserves the separation of arguments and not split whitespace containing values.
# For reference, see https://github.com/koalaman/shellcheck/wiki/SC2086#exceptions # For reference, see https://github.com/koalaman/shellcheck/wiki/SC2086#exceptions
local assets=() local assets=()
[ -n "$RELEASE_DIR" ] && [ -d "$RELEASE_DIR" ] && for file in "$RELEASE_DIR"/*; do if [ -n "$RELEASE_DIR" ] ; then
if [ -d "$RELEASE_DIR" ] && [ -n "$(find "$RELEASE_DIR" -mindepth 1 -maxdepth 1)" ]; then
for file in "$RELEASE_DIR"/*; do
assets=("${assets[@]}" -a "$file") assets=("${assets[@]}" -a "$file")
done done
else
echo "Warning: $RELEASE_DIR is empty or nonexistent. No assets will be uploaded."
fi
fi
if $PRERELEASE || echo "${TAG}" | grep -qi '\-rc'; then if $PRERELEASE || echo "${TAG}" | grep -qi '\-rc'; then
releaseType="--prerelease" releaseType="--prerelease"
echo "Uploading as Pre-Release" echo "Uploading as Pre-Release"