mirror of
https://code.forgejo.org/actions/forgejo-release.git
synced 2025-04-24 18:02:15 +00:00
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:
parent
2eb5091236
commit
7a1ac7c579
2 changed files with 2 additions and 1 deletions
|
@ -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"
|
||||||
|
|
1
testdata/upload-download/upload-dir/file 3.txt
vendored
Normal file
1
testdata/upload-download/upload-dir/file 3.txt
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
FILE3
|
Loading…
Add table
Reference in a new issue