diff --git a/pkg/hostagent/requirements.go b/pkg/hostagent/requirements.go index 2f290768499..d54d8cbcc3f 100644 --- a/pkg/hostagent/requirements.go +++ b/pkg/hostagent/requirements.go @@ -3,6 +3,7 @@ package hostagent import ( "errors" "fmt" + "strings" "time" "github.com/lima-vm/lima/pkg/limayaml" @@ -61,14 +62,17 @@ func (a *HostAgent) waitForRequirements(label string, requirements []requirement // EOF // /usr/bin/env ruby // -// ssh.ExecuteScript will strip the `#!` prefix from the first line and invoke the rest -// of the line as the command. The full script is then passed via STDIN. We use the $' ' -// form of shell quoting to be able to use \n as newline escapes to fit everything on a +// ssh.ExecuteScript will strip the `#!` prefix from the first line and invoke the +// rest of the line as the command. The full script is then passed via STDIN. We use +// "$(printf '…')" to be able to use \n as newline escapes, to fit everything on a // single line: // -// #!/bin/bash -c $'while … done<