Created
May 15, 2012 22:44
-
-
Save schallis/2705714 to your computer and use it in GitHub Desktop.
Check keychain status
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export RED="\033[0;31m" | |
export NO_COLOUR="\033[0m" | |
function check_keys() { | |
ssh-add -l >/dev/null | |
if [ $? -gt 0 ] | |
then | |
echo -en $RED | |
echo "You should add your key to the keychain" | |
echo -en $NO_COLOUR | |
else | |
echo "Keys all good!" | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment