From 1c40a3c4312351aae874ebb914f5f7a880943252 Mon Sep 17 00:00:00 2001 From: Gustavo Trott Date: Wed, 14 Dec 2022 08:21:35 -0300 Subject: [PATCH] Fix error on checking last line of ~/.ssh/config --- create_bbb.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/create_bbb.sh b/create_bbb.sh index db2d05f..34c77bf 100755 --- a/create_bbb.sh +++ b/create_bbb.sh @@ -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