Snippets

Andrew Gordon-Brooks init-dev-env-demo

Created by Andrew Gordon-Brooks last modified
#!/bin/sh
read -e -p "enter scp endpoint (user@127.0.0.1): " scp_endpoint
scp -o StrictHostKeyChecking=no $scp_endpoint:~/.gitconfig ~/.gitconfig
scp -o StrictHostKeyChecking=no $scp_endpoint:~/.ssh/id_rsa ~/.ssh/id_rsa
echo -e "Host bitbucket.org\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
chmod 0600 ~/.ssh/config
git clone git@bitbucket.org:bcpptl/dev-env-demo.git
cd dev-env-demo
sed 's/https:\/\/bitbucket.org\/bcpptl\/local-openshift.git/git@bitbucket.org:bcpptl\/local-openshift.git/' setup.sh > setup2.sh
sh setup2.sh

Comments (0)

HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.