#!/bin/bash # TODO: Clean this up so it iterates over the vars files if grep -qE "vault_decrypted: true" "./vars/vault.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