From f393a2ab7f99b76f2ab73ae769251ba569ec7059 Mon Sep 17 00:00:00 2001 From: Lucas Ritzdorf <42657792+LRitzdorf@users.noreply.github.com> Date: Wed, 21 Aug 2024 13:23:54 -0600 Subject: [PATCH] magellan.sh: remove unused build helper function We compile as part of the Docker build process, so an extra helper isn't really needed. --- bin/magellan.sh | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/bin/magellan.sh b/bin/magellan.sh index 98b3a37..c91d922 100755 --- a/bin/magellan.sh +++ b/bin/magellan.sh @@ -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