]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
Fix `EOF: command not found` error in ssh-copy-id
authorOleg <Fallmay@users.noreply.github.com>
Thu, 1 Oct 2020 09:09:08 +0000 (12:09 +0300)
committerDarren Tucker <dtucker@dtucker.net>
Fri, 2 Oct 2020 23:20:55 +0000 (09:20 +1000)
contrib/ssh-copy-id

index 392f64f9425fed96eeee8e1e9d7c1f6679d36a5c..a7690771725515a25f188e61b5983b5b9e6b84a1 100644 (file)
@@ -247,7 +247,7 @@ installkeys_sh() {
   #    the -z `tail ...` checks for a trailing newline. The echo adds one if was missing
   #    the cat adds the keys we're getting via STDIN
   #    and if available restorecon is used to restore the SELinux context
-  INSTALLKEYS_SH=$(tr '\t\n' ' ' <<-EOF)
+  INSTALLKEYS_SH=$(tr '\t\n' ' ' <<-EOF
        cd;
        umask 077;
        mkdir -p $(dirname "${AUTH_KEY_FILE}") &&
@@ -258,6 +258,7 @@ installkeys_sh() {
          restorecon -F .ssh ${AUTH_KEY_FILE};
        fi
 EOF
+  )
 
   # to defend against quirky remote shells: use 'exec sh -c' to get POSIX;
   printf "exec sh -c '%s'" "${INSTALLKEYS_SH}"