mirror of
https://github.com/passepartoutvpn/passepartout-apple.git
synced 2024-12-26 03:12:37 +00:00
20a6ba1dc3
/ = Local scripts ci = Remote scripts (run by workflow) util = Utilities
7 lines
193 B
Bash
Executable File
7 lines
193 B
Bash
Executable File
#!/bin/sh
|
|
HOSTNAME=`echo $MATCH_GIT_URL | sed -E "s/^.*@(.*):.*$/\1/"`
|
|
grep -q $HOSTNAME ~/.ssh/known_hosts
|
|
if [[ $? != 0 ]]; then
|
|
ssh-keyscan $HOSTNAME 2>/dev/null >>~/.ssh/known_hosts
|
|
fi
|