Sha256: c24fa01b4fdbf5bd8c8f28919c37c8c6801ec313b2a3fdbb6707a9a9b302052d
Contents?: true
Size: 781 Bytes
Versions: 22
Compression:
Stored size: 781 Bytes
Contents
# # install_github.sh # Sun Nov 22 20:46:43 -0200 2009 # apt-get update apt-get install -y git-core key="$HOME/.ssh/id_rsa" pubkey="$key.pub" if [ ! -f "$pubkey" ]; then ssh-keygen -t rsa -N "<%= ssh_passphrase %>" -f $key fi gitconfig="$HOME/.gitconfig" if [ ! -f "$gitconfig" ]; then git config --global github.user <%= github_user %> git config --global github.token <%= github_token %> git config --global user.name <%= user_name %> git config --global user.email <%= user_email %> fi key="$HOME/.ssh/id_rsa" pubkey="$key.pub" key_contents=`cat $pubkey` curl --silent -F "login=<%= github_user %>" -F "token=<%= github_token %>" \ https://github.com/api/v2/json/user/key/add -F "key=$key_contents" ssh -o "StrictHostKeyChecking no" git@github.com || true
Version data entries
22 entries across 11 versions & 1 rubygems