diff --git a/docs/Makefile b/docs/Makefile index c9d8a64..612ebd5 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -6,7 +6,7 @@ docs: source_file=$${line:2}; \ final_file=$${source_file//\//_}; \ mv "$${source_file}" "$${final_file}"; \ - no_ext_source=$$(basename -s .md $$source_file); \ - no_ext_final=$$(basename -s .md $$final_file); \ + no_ext_source=$${source_file:0:-3}; \ + no_ext_final=$${final_file:0:-3}; \ sed -i "s;\($${no_ext_source}\);\($${no_ext_final}\);g" *.md; \ done \ No newline at end of file