You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
./build.sh: line 137: syntax error near unexpected token `then' #997
When I run build.sh without arguments, the build completes but I get the following output at the end.
[clang compile]
[debug mode]
./build.sh: line 137: syntax error near unexpected token `then'
Adding a semicolon before line 137's then fixes the problem for me:
diff --git a/build.sh b/build.sh
index e40fd48f..61f313b7 100755
--- a/build.sh
+++ b/build.sh
@@ -134,6 +134,6 @@ then
fi
# --- Warn On Debug Builds (if debug not explicitly specified) ----------------
-if [[ ! -v debug && ! -v release ]] then
+if [[ ! -v debug && ! -v release ]]; then
echo "[INFO] Debug build complete. For a faster build, call this script with the \`release\` argument (this will take significantly longer than a debug build)."
fi
Activity
ryanfleury commentedon Oct 7, 2026
Fixed.