mirror of
https://github.com/passepartoutvpn/passepartout-apple.git
synced 2024-12-26 03:12:37 +00:00
9962401d74
- Always use bash for consistent script behavior - Replace deprecated set-output in GitHub workflows
7 lines
195 B
Bash
Executable File
7 lines
195 B
Bash
Executable File
#!/bin/bash
|
|
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
|