Skip to content

Commit

Permalink
magellan.sh: remove unused build helper function
Browse files Browse the repository at this point in the history
We compile as part of the Docker build process, so an extra helper isn't
really needed.
  • Loading branch information
LRitzdorf committed Aug 21, 2024
1 parent 327eb35 commit f393a2a
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions bin/magellan.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand All @@ -30,7 +26,7 @@ function scan() {

function list(){
# ./magellan list
${EXE} list
${EXE} list
}

function collect() {
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f393a2a

Please sign in to comment.