diff --git a/internal/cli/machine.go b/internal/cli/machine.go index 4e234288..fd8c979c 100644 --- a/internal/cli/machine.go +++ b/internal/cli/machine.go @@ -37,10 +37,6 @@ func provisionMachine(ctx context.Context, exec sshexec.Executor) error { "curl -fsSL %s | %s %s bash", sshexec.Quote(installScriptURL), sudoPrefix, sshexec.Quote(env), ) cmd := sshexec.QuoteCommand("bash", "-c", "set -o pipefail; "+curlBashCmd) - // TODO: figure out why sometimes the output of `docker version` within the script is intermixed with other - // script output. Note, that the same behavior is observed when using exec.Run but not when running the script - // using ssh CLI. Requesting a pseudo-terminal may help fix this issue: - // session.RequestPty("xterm", 40, 80, ssh.TerminalModes{}) if err = exec.Stream(ctx, cmd, os.Stdout, os.Stderr); err != nil { return fmt.Errorf("download and run install script: %w", err) } diff --git a/scripts/install.sh b/scripts/install.sh index 9ea6a0a5..1bfa8bd9 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -11,8 +11,7 @@ UNCLOUD_GROUP="uncloud" UNCLOUD_GROUP_ADD_USER=${UNCLOUD_GROUP_ADD_USER:-} log() { - echo $1 - #echo -e "\033[1;32m$1\033[0m" >&2 + echo -e "\033[1;32m$1\033[0m" } error() {