#!/usr/bin/env bash
set -e -o pipefail

KEYFILE=$HOME/.expo-internal/expo-git-crypt-key

if [ ! -f "$KEYFILE" ]; then
  echo "The git-crypt key for the Expo repository is missing. Run \`update-local-secrets\` in Universe first and then run \`unlock\` here again."
  exit 1
fi

git-crypt unlock "$KEYFILE"
