sin-bugbounty / scripts /complete-install.sh
GitHub Actions
Deploy SIN-BugBounty from GitHub Actions
9db1674
Raw
History Blame Contribute Delete
323 Bytes
#!/usr/bin/env bash
set -euo pipefail
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
mkdir -p "$ROOT/logs" "$ROOT/data"
if command -v npm >/dev/null 2>&1; then
npm --prefix "$ROOT" install
else
echo "npm is required" >&2
exit 1
fi
npm --prefix "$ROOT" run build
echo "complete-install finished for $(basename "$ROOT")"