Files
linone-infra/git-hooks/commit-msg

16 lines
548 B
Bash
Executable File

#!/bin/bash
# TODO: Clean this up so it iterates over the vars files
if grep -qE "vault_decrypted: true" "./vars/bigboi.yaml";then
echo "The vault isn't encrypted, run './encrypt-vault.sh' before committing."
exit 1
fi
if grep -qE "vault_decrypted: true" "./vars/bootstrap.yaml";then
echo "The vault isn't encrypted, run './encrypt-vault.sh' before committing."
exit 1
fi
if grep -qE "vault_decrypted: true" "./vars/smolboi.yaml";then
echo "The vault isn't encrypted, run './encrypt-vault.sh' before committing."
exit 1
fi