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:
Lucas Ritzdorf 2024-08-21 13:23:54 -06:00
parent 327eb35f4a
commit f393a2ab7f
No known key found for this signature in database
GPG key ID: 2DF95A24773EC007

View file

@ -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}
@ -30,7 +26,7 @@ function scan() {
function list(){ function list(){
# ./magellan list # ./magellan list
${EXE} list ${EXE} list
} }
function collect() { function collect() {
@ -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