Skip to content

Commit f19c39e

Browse files
author
Sam J Sharpe
committed
SSH known hosts format has changed
1 parent f9d3fb4 commit f19c39e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deploy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/sh
22
set -eu
33

4-
DEPLOY_TO="$(grep -E 'jumpbox-[0-9]+' /etc/ssh/ssh_known_hosts | awk '{ print $1 }' | xargs)"
4+
DEPLOY_TO="$(grep -E 'jumpbox-[0-9]+' /etc/ssh/ssh_known_hosts | awk '{ print $1 }' | cut -d, -f1 | xargs)"
55

66
for server in $DEPLOY_TO; do
77
rsync -av --delete --exclude='.git' "$(pwd)/" "deploy@${server}":/usr/local/share/govuk-fabric/

0 commit comments

Comments
 (0)