From b9c11a4dfd5afab304503fd61efe773b5a0da6a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Sat, 20 Apr 2019 09:07:08 +0200 Subject: Refresh environment before using it in setup --- nixops/scripts/setup | 3 +++ 1 file changed, 3 insertions(+) (limited to 'nixops/scripts') diff --git a/nixops/scripts/setup b/nixops/scripts/setup index 81ba8aa..4a76d35 100755 --- a/nixops/scripts/setup +++ b/nixops/scripts/setup @@ -52,6 +52,9 @@ if ! pass $NIXOPS_CONFIG_PASS_SUBTREE_PATH > /dev/null 2>/dev/null; then fi fi +# Repull it before using it, just in case +pass git subtree pull --prefix=$NIXOPS_CONFIG_PASS_SUBTREE_PATH $NIXOPS_CONFIG_PASS_SUBTREE_REMOTE master + gpg_keys=$(pass ls $NIXOPS_CONFIG_PASS_SUBTREE_PATH/Nixops/GPGKeys | sed -e "1d" | cut -d" " -f2) for key in $gpg_keys; do content=$(pass show $NIXOPS_CONFIG_PASS_SUBTREE_PATH/Nixops/GPGKeys/$key) -- cgit v1.2.3