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
tests/gold/html/Makefile uses bashism #983
Comments
Would you like to make a pull request? |
No, I don't like to fork a whole repository, make a small change and then delete the repository again just to change a single line. Here's the patch: --- tests/gold/html/Makefile.orig 2020-01-11 21:34:28.000000000 +0000
+++ tests/gold/html/Makefile 2020-05-02 14:46:46.837476331 +0000
@@ -7,7 +7,7 @@
complete: ## Copy support files into directories so the HTML can be viewed properly.
@for sub in *; do \
- if [[ -f $$sub/index.html ]]; then \
+ if [ -f "$$sub/index.html" ]; then \
echo Copying into $$sub ; \
cp -n support/* $$sub ; \
fi ; \ |
It definitely exists in other shells: About forks, you can edit a file directly inside the coverage repo: GitHub will automatically fork it, create a |
See #984; sorry, I forgot to refer back to this issue in the commit. |
Fixed in #984. |
Describe the bug
The
[[
keyword only exists in bash, not in other shells.It should be replaced with a simple
[
, and the filename should be enclosed in double quotes.The text was updated successfully, but these errors were encountered: