frontend-compiler-example/node_modules/@alecodes/bun-static-builder/.devfiles/hooks/pre-commit.sh
2025-04-11 16:02:16 -04:00

14 lines
230 B
Bash

#!/usr/bin/env bash
set -euxo pipefail
root="$(git rev-parse --show-toplevel)"
cd "$root"
gitleaks git
# Only validate encrypted files if we are tracking any
if [[ -e .ageboxreg.yml ]]; then
agebox validate --no-decrypt
fi