From c0ce2340ec1cd9b12e1c8e8a275ea742c8e1923b Mon Sep 17 00:00:00 2001 From: Michael FIG Date: Wed, 10 Apr 2024 13:13:24 -0600 Subject: [PATCH] fix(agd): make `agd-builder.sh` only build --- bin/agd | 11 +++++++++-- scripts/agd-builder.sh | 7 +------ 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/bin/agd b/bin/agd index c12543398e5a..79303b7f2141 100755 --- a/bin/agd +++ b/bin/agd @@ -1,5 +1,12 @@ #! /bin/bash -# bin/agd - execute ../scripts/agd-builder.sh +# bin/agd - execute ../scripts/agd-builder.sh then run the built `agd` real0=$(readlink "${BASH_SOURCE[0]}" || echo "${BASH_SOURCE[0]}") thisdir=$(cd "$(dirname -- "$real0")" > /dev/null && pwd -P) -exec "$thisdir/../scripts/agd-builder.sh" ${1+"$@"} + +# shellcheck disable=SC1091 +source "$thisdir/../scripts/agd-builder.sh" ${1+"$@"} + +# Run the built Cosmos daemon. +# shellcheck disable=SC2031 +export PATH="$thisdir/../packages/cosmic-swingset/bin:$PATH" +exec "$thisdir/../$GOLANG_DAEMON" ${1+"$@"} diff --git a/scripts/agd-builder.sh b/scripts/agd-builder.sh index 152e010258e1..9391a774d3a8 100755 --- a/scripts/agd-builder.sh +++ b/scripts/agd-builder.sh @@ -237,9 +237,4 @@ xsnap_version=$("${thisdir}/../packages/xsnap/xsnap-native/xsnap/build/bin/${pla if $only_build; then echo "Build complete." 1>&2 exit 0 -fi - -# Run the built Cosmos daemon. -# shellcheck disable=SC2031 -export PATH="$thisdir/../packages/cosmic-swingset/bin:$PATH" -exec "$thisdir/../$GOLANG_DAEMON" ${1+"$@"} +fi \ No newline at end of file