From 22af81b6acc40f54f5ef64e28da58d92fd7092d9 Mon Sep 17 00:00:00 2001 From: Adam Veldhousen Date: Thu, 2 Jun 2016 05:10:03 -0500 Subject: [PATCH] better grep pattern to catch different casing for host * --- bootstrap.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstrap.sh b/bootstrap.sh index 5ddc182..cd99ea7 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -47,7 +47,7 @@ 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 +if [[ -f "${dest}/.ssh/config" && -z $(cat "${dest}/.ssh/config" | grep "[hH]ost \*")]]; then 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"