marinone94
commited on
Commit
•
8f5c8b8
1
Parent(s):
e417b0c
update run sm py
Browse files
run_sm.py
CHANGED
@@ -5,12 +5,12 @@ import subprocess
|
|
5 |
|
6 |
def main():
|
7 |
# Let's skip arg names
|
8 |
-
|
|
|
9 |
repo_name = repo.split('/')[-1]
|
10 |
-
script_name = sys.argv[4]
|
11 |
cmd = f'git clone {repo} && cd {repo_name} && sh {script_name}'
|
12 |
-
|
13 |
-
|
14 |
|
15 |
if __name__ == '__main__':
|
16 |
main()
|
|
|
5 |
|
6 |
def main():
|
7 |
# Let's skip arg names
|
8 |
+
script_name = sys.argv[2]
|
9 |
+
repo = sys.argv[4]
|
10 |
repo_name = repo.split('/')[-1]
|
|
|
11 |
cmd = f'git clone {repo} && cd {repo_name} && sh {script_name}'
|
12 |
+
output = subprocess.run(cmd.split(), stdout=subprocess.PIPE)
|
13 |
+
print(output.stdout.decode())
|
14 |
|
15 |
if __name__ == '__main__':
|
16 |
main()
|