From 81277e758905b4093ed4da3d54419330827313f0 Mon Sep 17 00:00:00 2001 From: Anmol Sethi Date: Mon, 14 Nov 2022 04:10:40 -0800 Subject: [PATCH] install.sh: Improve structure and logging --- ci/release/_install.sh | 18 +++++++++++------- install.sh | 18 +++++++++++------- 2 files changed, 22 insertions(+), 14 deletions(-) diff --git a/ci/release/_install.sh b/ci/release/_install.sh index 170d9d798..594020129 100755 --- a/ci/release/_install.sh +++ b/ci/release/_install.sh @@ -162,6 +162,7 @@ main() { VERSION=${VERSION:-latest} if [ "$VERSION" = latest ]; then + header "fetching latest release info" fetch_release_info fi @@ -171,11 +172,12 @@ main() { install() { install_d2 if [ "${TALA-}" ]; then - install_tala + # Run in subshell to avoid overwriting VERSION. + ( install_tala ) fi COLOR=2 header success - log "Standalone release $ARCHIVE has been successfully installed into $PREFIX" + log "d2-$VERSION-$OS-$ARCH has been successfully installed into $PREFIX" if ! echo "$PATH" | grep -qF "$PREFIX/bin"; then logcat >&2 <&2 <