File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 11#! /bin/sh
22
3+ set -x
4+
35if [ -n " $COVERITY " ];
46then
57 ./script/coverity.sh;
@@ -49,8 +51,13 @@ ssh-keygen -t rsa -f ~/.ssh/id_rsa -N "" -q
4951cat ~ /.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
5052ssh-keyscan -t rsa localhost >> ~/.ssh/known_hosts
5153
52- # Get the fingerprint for localhost and remove the colons so we can parse it as a hex number
53- export GITTEST_REMOTE_SSH_FINGERPRINT=$( ssh-keygen -F localhost -l | tail -n 1 | cut -d ' ' -f 2 | tr -d ' :' )
54+ # Get the fingerprint for localhost and remove the colons so we can parse it as
55+ # a hex number. The Mac version is newer so it has a different output format.
56+ if [ " $TRAVIS_OS_NAME " = " osx" ]; then
57+ export GITTEST_REMOTE_SSH_FINGERPRINT=$( ssh-keygen -E md5 -F localhost -l | tail -n 1 | cut -d ' ' -f 3 | cut -d : -f2- | tr -d :)
58+ else
59+ export GITTEST_REMOTE_SSH_FINGERPRINT=$( ssh-keygen -F localhost -l | tail -n 1 | cut -d ' ' -f 2 | tr -d ' :' )
60+ fi
5461
5562export GITTEST_REMOTE_URL=" ssh://localhost/$HOME /_temp/test.git"
5663export GITTEST_REMOTE_USER=$USER
You can’t perform that action at this time.
0 commit comments