-
Notifications
You must be signed in to change notification settings - Fork 519
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
internal tooling improvements #1159
Conversation
```sh rg --files-with-matches '#!/bin/sh' | xargs sd -s '#!/bin/sh' '#!/usr/bin/env bash' ```
Some files appear unused:
I searched a local checkout with |
Needed the same patch as in #1134.
We needed to swallow the error from grep when it did not find matches. That is what we want!
This is ready to review :). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few nits and one mistake, but overall looks good! Thanks for cleaning up the scripts; that was a long term todo that I just never got around to. Just fix the items below before merging, please.
- simplify jq pipeline - preserve globs Co-authored-by: Peter Goodspeed-Niklaus <coriolinus@users.noreply.github.com>
```sh set -x find . -name '*.sh' ! -type d -exec bash -c 'expand -t 2 "$0" > /tmp/e && mv /tmp/e "$0"' {} \; ``` Courtesy of [SO](https://stackoverflow.com/questions/11094383/how-can-i-convert-tabs-to-spaces-in-every-file-of-a-directory)
```sh fd '.*\.sh$' | xargs chmod +x $0 ```
I was mistaken about exercism/github-actions exposing a shellcheck action. I just copied their workflow configuration into our single
tests.yml
.Closes #1110.