From 22241f53b9ff1883e210f61f6c65e2cefcb3e1b7 Mon Sep 17 00:00:00 2001 From: Richard Pringle Date: Fri, 18 Oct 2024 14:18:53 -0400 Subject: [PATCH] Make Morpheus build script take optional path (#1671) --- examples/morpheusvm/scripts/build.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/examples/morpheusvm/scripts/build.sh b/examples/morpheusvm/scripts/build.sh index 2d249567c7..0f71f77af6 100755 --- a/examples/morpheusvm/scripts/build.sh +++ b/examples/morpheusvm/scripts/build.sh @@ -19,4 +19,10 @@ MORPHEUSVM_PATH=$( cd .. && pwd ) +# if there's exactly one argument use it as the output path to go build +if [[ $# -eq 1 ]]; then + go build -o "$1" ./cmd/morpheusvm + exit 0 +fi + build_project "$MORPHEUSVM_PATH" "morpheusvm" "pkEmJQuTUic3dxzg8EYnktwn4W7uCHofNcwiYo458vodAUbY7"