diff --git a/setup.sh b/setup.sh index e535216..42d531c 100644 --- a/setup.sh +++ b/setup.sh @@ -39,7 +39,7 @@ fi # --- Unlock git-crypt via Bitwarden --- cd "$REPO_DIR" -if git-crypt status 2>/dev/null | grep -q ' encrypted:'; then +if [ ! -d "$REPO_DIR/.git/git-crypt/keys" ]; then echo "==> Fetching git-crypt key from Bitwarden..." echo " Log in to Bitwarden when prompted." if bw status 2>/dev/null | grep -q '"status":"unauthenticated"'; then