Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
set -e
if [ -f /keys/git ]; then
mkdir -p ~/.ssh
cp /keys/git ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
ssh-keyscan -H gitlab.com >> ~/.ssh/known_hosts 2>/dev/null || true
fi