|
|
|
@ -43,8 +43,8 @@ fi
|
|
|
|
|
echo ""
|
|
|
|
|
# a check to see if they're using a config file and if it has a host setup
|
|
|
|
|
if [[ -f "${dest}/.ssh/config" && -z $(cat "${dest}/.ssh/config" | grep "Host \*") ]]; then
|
|
|
|
|
echo "Applying ssh config"
|
|
|
|
|
# we copy it so that the config doesn't mess with the repo
|
|
|
|
|
echo "Appending ssh config"
|
|
|
|
|
# we append it so we don't destroy any custom settings they may have
|
|
|
|
|
cat "${source}/.ssh/config" >> "${dest}/.ssh/config"
|
|
|
|
|
elif [[ -z "${dest}/.ssh/config" ]]; then
|
|
|
|
|
echo "Copying new ssh config"
|
|
|
|
|