18971c
From 509a3b2c3354d6ea83bc61a83ac35f64c1c32103 Mon Sep 17 00:00:00 2001
18971c
From: Harald Hoyer <harald@redhat.com>
18971c
Date: Mon, 12 Jan 2015 14:20:42 +0100
18971c
Subject: [PATCH] ssh-client: s/key/$key
18971c
18971c
GlobalKnownHostsFile was not installed, because key was not $key
18971c
18971c
Thanks Jan Stodola!
18971c
18971c
(cherry picked from commit 4ba44e899cbc58e7cee0ff66c8ac4a96f502b972)
18971c
---
18971c
 modules.d/95ssh-client/module-setup.sh | 2 +-
18971c
 1 file changed, 1 insertion(+), 1 deletion(-)
18971c
18971c
diff --git a/modules.d/95ssh-client/module-setup.sh b/modules.d/95ssh-client/module-setup.sh
18971c
index f60e9631..c7d8ee24 100755
18971c
--- a/modules.d/95ssh-client/module-setup.sh
18971c
+++ b/modules.d/95ssh-client/module-setup.sh
18971c
@@ -45,7 +45,7 @@ inst_sshenv()
18971c
         inst_simple /etc/ssh/ssh_config
18971c
         sed -i -e 's/\(^[[:space:]]*\)ProxyCommand/\1# ProxyCommand/' ${initdir}/etc/ssh/ssh_config
18971c
         while read key val; do
18971c
-            [[ key != "GlobalKnownHostsFile" ]] && continue
18971c
+            [[ $key != "GlobalKnownHostsFile" ]] && continue
18971c
             inst_simple "$val"
18971c
             break
18971c
         done < /etc/ssh/ssh_config