Skip to content

Conversation

supcik
Copy link
Contributor

@supcik supcik commented Aug 21, 2025

On my Raspberry Pi, the first line of systemctl --version looks like this :

systemd 252 (252.36-1~deb12u1)

The systemd_version variable should be an integer because it is compared to 231 a couple of line further.

In the proposed change, I use grep instead of sed. The grep command prints all integers from the line, and the second head -1 keeps the first integer only.

@pull-request-size pull-request-size bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Aug 21, 2025
@caarlos0 caarlos0 merged commit 83fcc7d into goreleaser:main Aug 22, 2025
1 check passed
@caarlos0
Copy link
Member

Thanks!

@github-actions github-actions bot added this to the 2.38.0 milestone Aug 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants