mirror of
https://github.com/UNITRONIX/BetterDesk.git
synced 2026-10-26 06:19:53 +00:00
abc00b8804
Bind guest WebSocket sessions to a single target peer, enforce grant lifecycle and atomic usage, add the guest issuer scope, and document the password-less security boundary.\n\nRefs #440\n\nThanks: INSOLVE (Honorary); Marco Jakobs (@jacotec); MyNameisStitch (@MyNameisStitch); Redspin (@playerumpknow)
21 lines
732 B
Bash
21 lines
732 B
Bash
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
cd "$REPO_ROOT"
|
|
|
|
printf '%s\n' "Checking local BetterDesk gate prerequisites..."
|
|
if command -v node >/dev/null 2>&1; then
|
|
node scripts/local-gate.js --preflight-only
|
|
elif command -v node.exe >/dev/null 2>&1; then
|
|
node.exe scripts/local-gate.js --preflight-only
|
|
elif command -v powershell.exe >/dev/null 2>&1; then
|
|
powershell.exe -NoProfile -NonInteractive -ExecutionPolicy Bypass \
|
|
-File scripts/local-gate.ps1 -PreflightOnly
|
|
else
|
|
printf '%s\n' "BLOCKED: Node.js or PowerShell is not available." >&2
|
|
exit 1
|
|
fi
|
|
git config --local core.hooksPath .githooks
|
|
printf '%s\n' "Local hooks enabled at .githooks."
|