#!/bin/sh
# This script used from all scripts that need ssh access to git.alt

# If file with altlinux key doesn't exists -- exit
if [ ! -f ~/.ssh/id_dsa-alt ]; then
	exit -1
fi

if ! ssh-add -l | grep -q id_dsa-alt; then
	ssh-add ~/.ssh/id_dsa-alt
fi

