Add support for files containing spaces in their names

Currently files with spaces will break the `tea` command.
By enclosing the filenames in quotes the issue is resolved.
This commit is contained in:
Felix Kröner 2024-10-07 13:19:24 +02:00
parent 2eb5091236
commit 7a1ac7c579
2 changed files with 2 additions and 1 deletions

View file

@ -43,7 +43,7 @@ ensure_tag() {
} }
upload_release() { upload_release() {
local assets=$(ls $RELEASE_DIR/* | sed -e 's/^/-a /') local assets=$(ls $RELEASE_DIR/* | sed -e 's/^/-a "/' -e 's/$/" /')
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"

View file

@ -0,0 +1 @@
FILE3