github-release icon indicating copy to clipboard operation
github-release copied to clipboard

Fixed file parameter that has strings with spaces - Parsing Issue

Open ivan-the-terrible opened this issue 2 years ago • 0 comments

As per this open Issue: https://github.com/meeDamian/github-release/issues/33

I commented the following solution: https://github.com/meeDamian/github-release/issues/33#issuecomment-1823420056

On the entrypoint.sh script, the files are evaluated within a loop: for entry in $INPUT_FILES; do

This has the unfortunate outcome of splitting strings via spaces, BUT you can change the way it should split by updating the Internal Field Separator. So the solution is:

IFS='
' && for entry in $INPUT_FILES; do

image

ivan-the-terrible avatar Nov 22 '23 20:11 ivan-the-terrible