mirror of
https://github.com/QuantumPackage/qp2.git
synced 2024-12-30 15:15:38 +01:00
Cleaning code for qp_plugins download for git repo
This commit is contained in:
parent
832dbe10fa
commit
c180a534d7
@ -186,10 +186,10 @@ def main(arguments):
|
||||
url.endswith(".zip"))
|
||||
os.chdir(QP_PLUGINS)
|
||||
if is_repo:
|
||||
cmd=["git", "clone", url]
|
||||
git_cmd=["git", "clone", url]
|
||||
if arguments["--name"]:
|
||||
cmd=cmd+[arguments["--name"]]
|
||||
subprocess.check_call(cmd)
|
||||
git_cmd.append(arguments["--name"])
|
||||
subprocess.check_call(git_cmd)
|
||||
else:
|
||||
filename = url.split('/')[-1]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user