mirror of
https://github.com/aljazceru/recon-pipeline.git
synced 2025-12-20 07:44:26 +01:00
minor bugfix related to installation
This commit is contained in:
@@ -306,9 +306,7 @@ class ReconShell(cmd2.Cmd):
|
|||||||
self.poutput(style(f"Installing {args.tool}...", fg="blue", bold=True))
|
self.poutput(style(f"Installing {args.tool}...", fg="blue", bold=True))
|
||||||
|
|
||||||
for command in tools.get(args.tool).get("commands"):
|
for command in tools.get(args.tool).get("commands"):
|
||||||
if tools.get(args.tool).get("shell") and command.startswith(
|
if tools.get(args.tool).get("shell"): # go installs use subshells (...)
|
||||||
"("
|
|
||||||
): # go installs use subshells (...)
|
|
||||||
subprocess.run(command, shell=True)
|
subprocess.run(command, shell=True)
|
||||||
else:
|
else:
|
||||||
subprocess.run(shlex.split(command))
|
subprocess.run(shlex.split(command))
|
||||||
|
|||||||
Reference in New Issue
Block a user