From d7d8689d53be6b8efcfa95383c2c349d010a456f Mon Sep 17 00:00:00 2001 From: Moritz Date: Tue, 15 Nov 2022 21:28:35 +0100 Subject: [PATCH] Resolve reviews --- cli/app/cmd.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cli/app/cmd.go b/cli/app/cmd.go index 76b91e00..0ada275a 100644 --- a/cli/app/cmd.go +++ b/cli/app/cmd.go @@ -87,7 +87,7 @@ Example: sourceAndExec = fmt.Sprintf("TARGET=local; APP_NAME=%s; STACK_NAME=%s; %s . %s; %s", app.Name, app.StackName(), exportEnv, abraSh, cmdName) } - var shell string = "/bin/bash" + shell := "/bin/bash" if _, err := os.Stat(shell); errors.Is(err, os.ErrNotExist) { logrus.Debugf("%s does not exist locally, use /bin/sh as fallback", shell) shell = "/bin/sh" @@ -203,8 +203,8 @@ func runCmdRemote(app config.App, abraSh, serviceName, cmdName, cmdArgs string) return err } - var shell string = "/bin/bash" - var findShell []string = []string{"test", "-e", shell} + shell := "/bin/bash" + findShell := []string{"test", "-e", shell} execCreateOpts := types.ExecConfig{ AttachStderr: true, AttachStdin: true,