added support for 32bit go installations (#76)

This commit is contained in:
epi052
2020-07-06 18:18:33 -05:00
committed by GitHub
parent 4d1aef2d34
commit 4432990966
2 changed files with 4 additions and 1 deletions

View File

@@ -1,4 +1,5 @@
# flake8: noqa E231
import platform
from pathlib import Path
@@ -11,6 +12,7 @@ defaults = {
"results-dir": "recon-results",
"aquatone-scan-timeout": "900",
"home": Path.home(),
"arch": ["386", "amd64"][platform.architecture()[0].startswith("64")],
}
defaults["project-dir"] = str(Path(__file__).parents[2])

View File

@@ -1,9 +1,10 @@
installed: false
bashrc: &bashrc !join_path [!get_default "{home}", .bashrc]
path: &gotool !join_path [!get_default "{goroot}", go/bin/go]
dlpath: &dlpath !join_empty ["https://dl.google.com/go/go1.14.4.linux-", !get_default "{arch}", ".tar.gz"]
install_commands:
- wget -q https://dl.google.com/go/go1.14.4.linux-amd64.tar.gz -O /tmp/go.tar.gz
- !join ["wget -q", *dlpath, "-O /tmp/go.tar.gz"]
- !join [tar -C, !get_default "{goroot}", -xvf /tmp/go.tar.gz]
- !join ["bash -c 'if [ ! $(grep $(dirname", *gotool, ")", *bashrc, ") ]; then echo PATH=${PATH}:$(dirname", *gotool, ") >>", *bashrc, "; fi'"]