minor bugfix related to installation

This commit is contained in:
epi052
2020-01-12 15:54:48 -06:00
parent 7483c7a403
commit 3dea7e6379

View File

@@ -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))