Closed sripwoud closed 4 months ago
Latest commit: 420ff273c94cb5d3ec41d7e3b2489a4167e979a9
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
Hey @sripwoud , I can vote up for the suggested change, but to be honest i cannot see the bug, or are you talking about a different scenario where folders have spaces or special characters? Feeding the result directly in the loop, will also break it, if that' s the case (while - read should be used instead in that scenario).
I also tried to reproduce the result of the commands in your screenshot, but the output is the same:
In addition, the current implemented code seems to work fine, otherwise wouldn' t be an issue during the workflow execution?
Please let me know if i missed or misinterpreted anything in your PR :)
i cannot see the bug
hmm what is your shell? Maybe I have some shell configuration I forgot about?
otherwise wouldn' t be an issue during the workflow execution?
indeed, I was not sure if I should really suggest a fix for this.
Let's close this, if the script works in the ci env no need to change anything
Tested on Ubuntu 24.04 LTS with GNU bash, version 5.2.21(1)-release (x86_64-pc-linux-gnu).
I missed this when reviewing the PR: if we store the result of
ls packages/ | grep -v 'artifacts\|cli'
before looping, the shell we split it line by line before looping, which breaks the loop. I suggest sticking to command subsitution, as in this case newlines are deleted and the for loop will work as intended