Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

's' in package names is replaced with comma on MacOS #1

Open
andy-maier opened this issue Jun 5, 2024 · 0 comments
Open

's' in package names is replaced with comma on MacOS #1

andy-maier opened this issue Jun 5, 2024 · 0 comments

Comments

@andy-maier
Copy link

andy-maier commented Jun 5, 2024

The regular expression used in the action.yml file:

      PKGS=$( \
        echo '${{ steps.bindep.outputs.packages }}' \
        | \
        sed 's#\(^\s\+\|\s\+$\)##g;s#\s#\,#g' \
      )

does not work with the "sed" command in MacOS.

For example, it replaces "s" with comma:

$ echo 'libxslt' | sed 's#\(^\s\+\|\s\+$\)##g;s#\s#\,#g'
libx,lt

Log file: https://github.com/pywbem/pywbem/actions/runs/9377087850/job/25818072248#step:11:108

It also does not strip blanks:

$ echo ' libxml2' | sed 's#\(^\s\+\|\s\+$\)##g;s#\s#\,#g'
 libxml2

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant