Load env to set VAULT_ADDR

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2019-01-18 00:28:45 +01:00
parent ca2c93a134
commit 170fa1a9b9
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -1,6 +1,8 @@
#!/bin/bash
set -euo pipefail
[ -f ${HOME}/.config/i3blocks/.env ] && source ${HOME}/.config/i3blocks/.env
# Get token from vault
gh_token=$(vault read -field=token secret/private/github/notifications)
[ -z "${gh_token}" ] && exit 1