mirror of
https://github.com/davidallendj/magellan.git
synced 2025-12-20 03:27:03 -07:00
magellan.sh: remove unused build helper function
We compile as part of the Docker build process, so an extra helper isn't really needed.
This commit is contained in:
parent
327eb35f4a
commit
f393a2ab7f
1 changed files with 3 additions and 7 deletions
|
|
@ -15,10 +15,6 @@ SCAN_PARAMS=""
|
||||||
COLLECT_PARAMS=""
|
COLLECT_PARAMS=""
|
||||||
|
|
||||||
|
|
||||||
function build(){
|
|
||||||
go mod tidy && go build -C bin/magellan
|
|
||||||
}
|
|
||||||
|
|
||||||
function scan() {
|
function scan() {
|
||||||
# ./magellan scan --subnet 172.16.0.0 --port 443
|
# ./magellan scan --subnet 172.16.0.0 --port 443
|
||||||
${EXE} scan ${SCAN_PARAMS}
|
${EXE} scan ${SCAN_PARAMS}
|
||||||
|
|
@ -48,7 +44,7 @@ function collect() {
|
||||||
|
|
||||||
# parse incoming arguments to set variables
|
# parse incoming arguments to set variables
|
||||||
while [[ $# -gt 0 ]]; do
|
while [[ $# -gt 0 ]]; do
|
||||||
case $1 in
|
case $1 in
|
||||||
--scan)
|
--scan)
|
||||||
SCAN_PARAMS="$2"
|
SCAN_PARAMS="$2"
|
||||||
shift
|
shift
|
||||||
|
|
@ -107,7 +103,7 @@ while [[ $# -gt 0 ]]; do
|
||||||
ARGS+=("$1") # save positional arg
|
ARGS+=("$1") # save positional arg
|
||||||
shift # past argument
|
shift # past argument
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
set -- "${POSITIONAL_ARGS[@]}" # restore positional parameters
|
set -- "${POSITIONAL_ARGS[@]}" # restore positional parameters
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue