mirror of
https://github.com/expo/turtle.git
synced 2026-11-14 19:12:55 -10:00
17 lines
352 B
Bash
Executable File
17 lines
352 B
Bash
Executable File
#!/bin/bash
|
|
set -e -o pipefail
|
|
|
|
KEYFILE=$HOME/.expo-internal/turtle-git-crypt-key
|
|
|
|
if [ ! -f "$KEYFILE" ]; then
|
|
echo "Missing keyfile, running update-local-secrets first"
|
|
update-local-secrets --keyfile-only
|
|
fi
|
|
|
|
if ! command -v git-crypt >/dev/null 2>&1 ; then
|
|
echo "You need to have git-crypt installed."
|
|
exit 1
|
|
fi
|
|
|
|
git-crypt unlock "$KEYFILE"
|