feat: do not attempt to add assets if release dir is empty or nonexistent

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

View file

@ -84,7 +84,7 @@ upload_release() {
# 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
local assets=()
for file in "$RELEASE_DIR"/*; do
[ -n "$RELEASE_DIR" ] && [ -d "$RELEASE_DIR" ] && for file in "$RELEASE_DIR"/*; do
assets=("${assets[@]}" -a "$file")
done
if $PRERELEASE || echo "${TAG}" | grep -qi '\-rc'; then