From 6ce3b3a5b7ee1c008cdda0ac57507b40e7ce7eaf Mon Sep 17 00:00:00 2001 From: leo Date: Tue, 28 Feb 2023 17:53:23 +0100 Subject: [PATCH] command fix --- clone_for_markdown.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/clone_for_markdown.py b/clone_for_markdown.py index 6a3de5c..fb114df 100644 --- a/clone_for_markdown.py +++ b/clone_for_markdown.py @@ -12,7 +12,6 @@ return : The name of the folder containing the cloned repo PATH_PREFIX = "/var/lib/gitea/git/repositories" CACHE_FOLDER_PATH = "/var/lib/gitea/markdown_cache" -#PATH_PREFIX = ".." import sys import subprocess @@ -34,5 +33,5 @@ if not os.path.isdir(CACHE_FOLDER_PATH): if not os.path.isdir(repo_name): subprocess.run(["git", "clone", repo_path, repo_name], check=True, stdout=subprocess.DEVNULL, stderr=subprocess.STDOUT) - subprocess.run(["asciidoctor", "-s", "-a", "showtitle", "--out-file=-", f"--base-dir={repo_name}"], stdin=sys.stdin, stdout=sys.stdout) + subprocess.run(["asciidoctor", "-s", "-a", "showtitle", "--out-file=-", f"--base-dir={repo_name}", "-"])