From 09ee42e48f172db85bc75e6bc26f54d77476901a Mon Sep 17 00:00:00 2001 From: Dimitri Merejkowsky Date: Sat, 23 May 2020 14:49:06 +0200 Subject: [PATCH] build.py: don't make assumptions on the generated pdf name --- cours/build.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cours/build.py b/cours/build.py index fcac7d2..aa54c44 100755 --- a/cours/build.py +++ b/cours/build.py @@ -7,7 +7,7 @@ import subprocess def run(*cmd): print("$", *cmd) - process = subprocess.run(cmd) + process = subprocess.run(" ".join(cmd), shell=True) if process.returncode != 0: sys.exit(1) @@ -47,7 +47,7 @@ def main(): # fmt: off run( "mv", "-v", "-f", - f"{build_path}/courspython.pdf", + f"{build_path}/*.pdf", "../cours.pdf", ) # fmt: on