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