Fix error on checking last line of ~/.ssh/config

pull/8/head
Gustavo Trott 2 years ago
parent c37e7f7ef2
commit 1c40a3c431

@ -258,7 +258,7 @@ ssh-keyscan -H "$DOCKERIP" >> ~/.ssh/known_hosts
ssh-keyscan -H "$HOSTNAME" >> ~/.ssh/known_hosts
# ssh-keyscan -H [hostname],[ip_address] >> ~/.ssh/known_hosts
if [ ! -z $(tail -1 ~/.ssh/config) ] ; then
if [ ! -z "$(tail -1 ~/.ssh/config)" ] ; then
echo "" >> ~/.ssh/config
fi

Loading…
Cancel
Save