Skip to content

Commit

Permalink
Merge pull request #423 from roots/QWp6t-winsshforwarding
Browse files Browse the repository at this point in the history
Notify Windows users about SSH forwarding
  • Loading branch information
swalkinshaw committed Nov 29, 2015
2 parents 082430a + 161bc47 commit 45469a2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions windows.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@ if [ ! -f ~/.ssh/id_rsa ]; then
echo -e "\n\n\n" | ssh-keygen -t rsa
fi

# Check SSH forwarding agent
echo '
printf "\033[1;33m"
if ! ssh-add -l >/dev/null; then
printf "See: https://roots.io/trellis/docs/windows/#ssh-forwarding"
fi
printf "\033[0m\n\n"
' >> /home/vagrant/.profile

# Check that add-apt-repository is installed for non-standard Vagrant boxes
if [ ! -f /usr/bin/add-apt-repository ]; then
echo "Adding add-apt-repository..."
Expand Down

0 comments on commit 45469a2

Please sign in to comment.