Copying setup from other infra repo
This commit is contained in:
16
git-hooks/commit-msg
Executable file
16
git-hooks/commit-msg
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user