diff options
| author | Christophe Besson <cbesson@gmail.com> | 2026-10-16 08:37:07 +0200 |
|---|---|---|
| committer | Christophe Besson <cbesson@gmail.com> | 2026-10-16 08:37:07 +0200 |
| commit | b52720497594f9c30e7d1c89d83ed997614676a2 (patch) | |
| tree | 3c876743649290478a3cfb8de5f082ef5cd85a3e /packaging/build | |
| parent | 95f14c1b30a8e28735881314947e6ca66f165161 (diff) | |
| download | meshbay-b52720497594f9c30e7d1c89d83ed997614676a2.tar.gz | |
fix(packaging): say so when QE/default.env is missing instead of stopping silently
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'packaging/build')
| -rwxr-xr-x | packaging/build/build-node.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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 |