aboutsummaryrefslogtreecommitdiffhomepage
path: root/all.sh
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-05-04 04:00:33 +0900
committerOphestra <cat@gensokyo.uk>2026-05-04 04:02:02 +0900
commitb2b40b07e83af85330157e134d1cc591ed4f7c76 (patch)
tree78439d07612e05ec7d916b24ba8e5d55097204e6 /all.sh
parentda11b26ec16ef9ed61045fdbb03c4090286bfeba (diff)
cmd/dist: optional verbosity
This makes output less noisy. The build is fast enough not to require progress indication. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'all.sh')
-rwxr-xr-xall.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/all.sh b/all.sh
index 17b6b862..a7db6d61 100755
--- a/all.sh
+++ b/all.sh
@@ -2,5 +2,9 @@
TOOLCHAIN_VERSION="$(go version)"
cd "$(dirname -- "$0")/"
-echo "# Building cmd/dist using ${TOOLCHAIN_VERSION}."
-go run -v --tags=dist ./cmd/dist
+echo "Building cmd/dist using ${TOOLCHAIN_VERSION}."
+FLAGS=''
+if test -n "$VERBOSE"; then
+ FLAGS="$FLAGS -v"
+fi
+go run $FLAGS --tags=dist ./cmd/dist