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=""
|
||||
|
||||
|
||||
function build(){
|
||||
go mod tidy && go build -C bin/magellan
|
||||
}
|
||||
|
||||
function scan() {
|
||||
# ./magellan scan --subnet 172.16.0.0 --port 443
|
||||
${EXE} scan ${SCAN_PARAMS}
|
||||
|
|
@ -30,7 +26,7 @@ function scan() {
|
|||
|
||||
function list(){
|
||||
# ./magellan list
|
||||
${EXE} list
|
||||
${EXE} list
|
||||
}
|
||||
|
||||
function collect() {
|
||||
|
|
@ -48,7 +44,7 @@ function collect() {
|
|||
|
||||
# parse incoming arguments to set variables
|
||||
while [[ $# -gt 0 ]]; do
|
||||
case $1 in
|
||||
case $1 in
|
||||
--scan)
|
||||
SCAN_PARAMS="$2"
|
||||
shift
|
||||
|
|
@ -107,7 +103,7 @@ while [[ $# -gt 0 ]]; do
|
|||
ARGS+=("$1") # save positional arg
|
||||
shift # past argument
|
||||
;;
|
||||
esac
|
||||
esac
|
||||
done
|
||||
|
||||
set -- "${POSITIONAL_ARGS[@]}" # restore positional parameters
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue