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

Fix warnings reported by shellcheck #61

Merged
merged 2 commits into from
Sep 3, 2022
Merged

Fix warnings reported by shellcheck #61

merged 2 commits into from
Sep 3, 2022

Conversation

arkq
Copy link
Contributor

@arkq arkq commented Jul 31, 2022

It seems that the shellcheck has not been run on the action runner itself. There was a common error with iteration over find results with a simple for-loop. Such loop does not handle correctly file names with spaces. This PR fixes that issue. However, I had to join two steps ("Gather base file paths" and "Run the file check") into one. GitHub does not support passing array variable between steps, and passing gathered files in a simple string will not work for file names with spaces. To prevent mistakes like that in the future, I've added a test file with a whitespace in the name.

Copy link
Owner

@ludeeus ludeeus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 👍

@ludeeus ludeeus merged commit 10434c2 into ludeeus:master Sep 3, 2022
@arkq arkq deleted the fix-spaces-in-names branch September 3, 2022 09:10
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

Successfully merging this pull request may close these issues.

None yet

2 participants