From cfbc79606bf9941530cd3341917a9eee70a42fd5 Mon Sep 17 00:00:00 2001 From: Michael Mayer Date: Tue, 1 Mar 2022 16:54:49 +0100 Subject: [PATCH] CI: Improve binary build script logging #2076 --- scripts/build.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/build.sh b/scripts/build.sh index c1a9ba1d9..ae405faa6 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -15,6 +15,7 @@ BUILD_TAG=${BUILD_DATE}-${BUILD_VERSION} BUILD_ID=${BUILD_TAG}-${BUILD_OS}-${BUILD_ARCH^^} BUILD_NAME=$(realpath "${2:-photoprism}") GO_BIN=${GO_BIN:-/usr/local/go/bin/go} +GO_VER=$($GO_BIN version) echo "Building PhotoPrism ${BUILD_ID} ($1)..." @@ -29,9 +30,8 @@ else fi # build binary -echo "photoprism-bin: $BUILD_NAME" -echo "command: ${BUILD_CMD[*]}" -$GO_BIN version +echo "=> compiling \"$BUILD_NAME\" with \"${GO_VER^}\"" +echo "=> command: ${BUILD_CMD[*]}" "${BUILD_CMD[@]}" # show size