From 77d2c8ee6140e8fb45162ab535035c549d5feae8 Mon Sep 17 00:00:00 2001 From: James Bensley Date: Mon, 25 Nov 2024 07:41:07 +0100 Subject: [PATCH] Update clone.py --- clone.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/clone.py b/clone.py index 7b19693..b28a67a 100644 --- a/clone.py +++ b/clone.py @@ -1,6 +1,17 @@ import subprocess +subprocess.run( + ["mkdir", "-p", "/opt/dnas_data/"], + capture_output=True, +) +ret = subprocess.run( + ["git", "clone", "git@github.com:DFZ-Name-and-Shame/dnas_stats.git", "/opt/dnas_data/"], + capture_output=True, +) +print(ret.returncode) +print(ret.stdout.decode()) +print(ret.stderr.decode()) ret = subprocess.run( - ["git", "clone", "git@github.com:DFZ-Name-and-Shame/dnas_stats.git"], + ["ls", "-l", "/opt/dnas_data/"], capture_output=True, ) print(ret.returncode)