Direct insert not working on Linux Mint
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 38/100
Línea de trabajo
Start at the ./gh-md-toc entry point, search for the grep condition that checks the and markers, and inspect line 178 where no_backup is tested. Verify the --insert path against a README.md containing both markers, then exercise the no-backup option and confirm neither shell error occurs.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
I was using the direct insert flag --insert to directly insert the TOC into the readme.md. I've added the two lines
<!--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
- Lenguaje dominante
- Shell
- Estrellas
- 3.3k
- Forks
- 2.7k
- Merge medio
- 20 min
- PR fusionados (30 d)
- 7
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de ekalinin/github-markdown-toc
-
Update bats version in CIAbierto
Dificultad 1/5 1-3 horas Aptitud para principiantes 78/100
ekalinin/github-markdown-toc#176 ·
-
documentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
ekalinin/github-markdown-toc#165 ·
-
[Feature] `--no-code-tag-removal` flag allowing to make removal of backticks in TOC entries optionalAbiertoenhancement
Dificultad 3/5 1-2 días Aptitud para principiantes 58/100
ekalinin/github-markdown-toc#153 ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
ekalinin/github-markdown-toc#152 · 1 reacción ·
-
bug
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
ekalinin/github-markdown-toc#141 ·
Todos los issues de ekalinin/github-markdown-toc
Issues similares
-
Bug: pane path not quotedAbiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
-
Does a subagent definition's `tools:` bypass the permission check? One default-permission cellAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
pearu/agent-sandbox#156 ·
Los mantenedores suelen responder en 1 día
-
area/documentation squad/marvin
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
rancher/stackstate-product-docs#443 ·
Los mantenedores suelen responder en 1 día
-
Request: Remove Sikka appAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
getumbrel/umbrel-apps#6142 ·
Los mantenedores suelen responder en 2 días
-
triage/confirmed
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
agentscope-ai/agentscope#3030 ·
Los mantenedores suelen responder en 1 día