Load env to set VAULT_ADDR
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
ca2c93a134
commit
170fa1a9b9
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue