We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I was using the direct insert flag --insert to directly insert the TOC into the readme.md. I've added the two lines
--insert
readme.md
<!--ts--> <!--te-->
into the readme but when running the script with the --insert flag I get the output:
You don't have <!--ts--> or <!--te--> in your file...exiting
I've found the part in the script that does the search for the tags
if grep -Fxq "<!--ts-->" $gh_src && grep -Fxq "<!--te-->" $gh_src; then
which seems to fail. I've run the command manually on Linux Mint 19
grep -Fxq "<!--ts-->" Readme.md
and I get the error
bash: !-: event not found
For my workaround I had to escape the syntax to this form
if grep -xq "<\!--ts-->" $gh_src && grep -xq "<\!--te-->" $gh_src; then
Line 178 returns the following error
./gh-md-toc: line 178: [: =: unary operator expected```
should probably be changed to
if [ "$no_backup" = "yes" ]; then
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I was using the direct insert flag
--insert
to directly insert the TOC into thereadme.md
. I've added the two linesinto the readme but when running the script with the
--insert
flag I get the output:I've found the part in the script that does the search for the tags
which seems to fail. I've run the command manually on Linux Mint 19
and I get the error
For my workaround I had to escape the syntax to this form
Line 178 returns the following error
should probably be changed to
The text was updated successfully, but these errors were encountered: