From b52720497594f9c30e7d1c89d83ed997614676a2 Mon Sep 17 00:00:00 2001 From: Christophe Besson Date: Fri, 16 Oct 2026 08:37:07 +0200 Subject: fix(packaging): say so when QE/default.env is missing instead of stopping silently Co-Authored-By: Claude Opus 5.5 --- packaging/build/build-node.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packaging') diff --git a/packaging/build/build-node.sh b/packaging/build/build-node.sh index c7e7577..74d1d40 100755 --- a/packaging/build/build-node.sh +++ b/packaging/build/build-node.sh @@ -53,7 +53,7 @@ mkdir -p "$ROOT/opt/meshbay-node/share" # must read it, and it is the same token in every copy of the package. No # token, no build: an empty one goes unnoticed. DEFAULT_ENV="$REPO/QE/default.env" -TOKEN_LINE="$(head -n 1 "$DEFAULT_ENV" 2>/dev/null | tr -d '\r')" +TOKEN_LINE="$(head -n 1 "$DEFAULT_ENV" 2>/dev/null | tr -d '\r' || true)" if ! [[ "$TOKEN_LINE" =~ ^MESHBAY_TMDB_DEFAULT_TOKEN=eyJ[A-Za-z0-9_.-]+$ ]]; then echo "!! $DEFAULT_ENV missing, or its first line is not MESHBAY_TMDB_DEFAULT_TOKEN=eyJ... (no BOM)" >&2 exit 1 -- cgit v1.2.3