aboutsummaryrefslogtreecommitdiffstats
path: root/packaging/build
diff options
context:
space:
mode:
authorChristophe Besson <cbesson@gmail.com>2026-10-16 11:11:25 +0200
committerChristophe Besson <cbesson@gmail.com>2026-10-16 11:11:25 +0200
commit1557ba53d8a7110869484ac5f9ccf03c5cfea322 (patch)
treeb3178a6efe0effda68160b5ee2aaa83165877650 /packaging/build
parent625b2fea074e1c23b992b5759126595b6850af32 (diff)
parent595d316f18576356182d81923b28b861bbaec2cc (diff)
downloadmeshbay-1557ba53d8a7110869484ac5f9ccf03c5cfea322.tar.gz
Merge branch 'main' of meshbay.org:meshbay
Diffstat (limited to 'packaging/build')
-rwxr-xr-xpackaging/build/build-node.sh2
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