install: move git verify-commit into the if of whether the keys exist

This commit is contained in:
Aminda Suomalainen 2024-05-21 20:24:06 +03:00
parent 1769f3b6dc
commit af80e553c6
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q

View File

@ -3,16 +3,14 @@
set -x
if [ -d ~/src/gitea.blesmrt.net/Mikaela/ssh-allowed_signers ]; then
printf "\n[OK] ssh-allowed_signers exists\n\n"
git verify-commit HEAD
sleep 3
else
echo "Keys not found, cloning..."
mkdir -vp ~/src/gitea.blesmrt.net/Mikaela/
git clone https://gitea.blesmrt.net/Mikaela/ssh-allowed_signers.git ~/src/gitea.blesmrt.net/Mikaela/ssh-allowed_signers
fi
git verify-commit HEAD
sleep 3
export MIKAELA_GREP=$HOME/.MIKAELA_GREP
cat rc/bashrc >~/.bashrc