Resolve reviews
continuous-integration/drone/pr Build is passing Details

This commit is contained in:
Moritz 2022-11-15 21:28:35 +01:00
parent a48e2e2607
commit d7d8689d53
1 changed files with 3 additions and 3 deletions

View File

@ -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,