mirror of
https://github.com/aljazceru/recon-pipeline.git
synced 2025-12-24 01:34:26 +01:00
added support for 32bit go installations (#76)
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
# flake8: noqa E231
|
# flake8: noqa E231
|
||||||
|
import platform
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
|
|
||||||
@@ -11,6 +12,7 @@ defaults = {
|
|||||||
"results-dir": "recon-results",
|
"results-dir": "recon-results",
|
||||||
"aquatone-scan-timeout": "900",
|
"aquatone-scan-timeout": "900",
|
||||||
"home": Path.home(),
|
"home": Path.home(),
|
||||||
|
"arch": ["386", "amd64"][platform.architecture()[0].startswith("64")],
|
||||||
}
|
}
|
||||||
|
|
||||||
defaults["project-dir"] = str(Path(__file__).parents[2])
|
defaults["project-dir"] = str(Path(__file__).parents[2])
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
installed: false
|
installed: false
|
||||||
bashrc: &bashrc !join_path [!get_default "{home}", .bashrc]
|
bashrc: &bashrc !join_path [!get_default "{home}", .bashrc]
|
||||||
path: &gotool !join_path [!get_default "{goroot}", go/bin/go]
|
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:
|
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 [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'"]
|
- !join ["bash -c 'if [ ! $(grep $(dirname", *gotool, ")", *bashrc, ") ]; then echo PATH=${PATH}:$(dirname", *gotool, ") >>", *bashrc, "; fi'"]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user