From 170fa1a9b99f8b6ab004adc5a446432fe4d98c6a Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Fri, 18 Jan 2019 00:28:45 +0100 Subject: [PATCH] Load env to set VAULT_ADDR Signed-off-by: Knut Ahlers --- .config/i3blocks/github | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.config/i3blocks/github b/.config/i3blocks/github index 372bc99..00e4fc6 100755 --- a/.config/i3blocks/github +++ b/.config/i3blocks/github @@ -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