Ensure Connect has been configured

This commit is contained in:
Floris van der Grinten
2021-05-20 11:38:59 +02:00
parent 4d815b6e11
commit 8e88ca96a5

View File

@@ -3,6 +3,11 @@ set -e
managed_by_statement="Managed by 1Password"
if [ -z "$OP_CONNECT_TOKEN" ] || [ -z "$OP_CONNECT_HOST" ]; then
echo "\$OP_CONNECT_TOKEN and \$OP_CONNECT_HOST must be set"
exit 1
fi
# Unset all secrets managed by 1Password if `unset-previous` is set.
if [ "$INPUT_UNSET_PREVIOUS" == "true" ]; then
echo "Unsetting previous values..."