feat(cmd)!: run abra.sh commands with /bin/bash if available. #229
@ -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)
|
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"
|
||||||
moritz marked this conversation as resolved
Outdated
|
|||||||
if _, err := os.Stat(shell); errors.Is(err, os.ErrNotExist) {
|
if _, err := os.Stat(shell); errors.Is(err, os.ErrNotExist) {
|
||||||
logrus.Debugf("%s does not exist locally, use /bin/sh as fallback", shell)
|
logrus.Debugf("%s does not exist locally, use /bin/sh as fallback", shell)
|
||||||
shell = "/bin/sh"
|
shell = "/bin/sh"
|
||||||
@ -203,8 +203,8 @@ func runCmdRemote(app config.App, abraSh, serviceName, cmdName, cmdArgs string)
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
var shell string = "/bin/bash"
|
shell := "/bin/bash"
|
||||||
moritz marked this conversation as resolved
Outdated
decentral1se
commented
`shell := "/bin/bash"`
|
|||||||
var findShell []string = []string{"test", "-e", shell}
|
findShell := []string{"test", "-e", shell}
|
||||||
moritz marked this conversation as resolved
Outdated
decentral1se
commented
`findShell := []string{"test", "-e", shell}`
|
|||||||
execCreateOpts := types.ExecConfig{
|
execCreateOpts := types.ExecConfig{
|
||||||
AttachStderr: true,
|
AttachStderr: true,
|
||||||
AttachStdin: true,
|
AttachStdin: true,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user
shell := "/bin/bash"
is the style we've been using elsewhere in the codebase.