Skip to content

Commit ff3b455

Browse files
committed
fix(agd): make agd-builder.sh only build
1 parent 233180d commit ff3b455

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

bin/agd

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
#! /bin/bash
2-
# bin/agd - execute ../scripts/agd-builder.sh
2+
# bin/agd - execute ../scripts/agd-builder.sh then run the built `agd`
33
real0=$(readlink "${BASH_SOURCE[0]}" || echo "${BASH_SOURCE[0]}")
44
thisdir=$(cd "$(dirname -- "$real0")" > /dev/null && pwd -P)
5-
exec "$thisdir/../scripts/agd-builder.sh" ${1+"$@"}
5+
6+
# shellcheck disable=SC1091
7+
source "$thisdir/../scripts/agd-builder.sh" ${1+"$@"}
8+
9+
# Run the built Cosmos daemon.
10+
# shellcheck disable=SC2031
11+
export PATH="$thisdir/../packages/cosmic-swingset/bin:$PATH"
12+
exec "$thisdir/../$GOLANG_DAEMON" ${1+"$@"}

scripts/agd-builder.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -238,8 +238,3 @@ if $only_build; then
238238
echo "Build complete." 1>&2
239239
exit 0
240240
fi
241-
242-
# Run the built Cosmos daemon.
243-
# shellcheck disable=SC2031
244-
export PATH="$thisdir/../packages/cosmic-swingset/bin:$PATH"
245-
exec "$thisdir/../$GOLANG_DAEMON" ${1+"$@"}

0 commit comments

Comments
 (0)