aboutsummaryrefslogtreecommitdiffstats
path: root/packaging/build
diff options
context:
space:
mode:
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