feat(cmd)!: run abra.sh commands with /bin/bash if available. #229
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "moritz/abra:main"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Solving this issue: coop-cloud/organising#357
BREAKING CHANGE: abra.sh commands that depend on /bin/sh will break.
Nice one @moritz! I think the breaking change is OK since a lot of stuff was specifically relying on
/bin/sh
due to a missing/bin/bash
. So, with/bin/bash
still missing, those scripts will go on working. Typically, you have some guarantees over the shell environment of the target container and projects rarely switch this up in my experience. Let's see what the rest think.@ -88,3 +88,3 @@
}
cmd := exec.Command("/bin/sh", "-c", sourceAndExec)
var shell string = "/bin/bash"
shell := "/bin/bash"
is the style we've been using elsewhere in the codebase.@ -201,3 +205,2 @@
logrus.Debugf("running command: %s", strings.Join(cmd, " "))
var shell string = "/bin/bash"
shell := "/bin/bash"
@ -202,2 +206,2 @@
logrus.Debugf("running command: %s", strings.Join(cmd, " "))
var shell string = "/bin/bash"
var findShell []string = []string{"test", "-e", shell}
findShell := []string{"test", "-e", shell}
💯
(folks on the chat seem to think this is great also, so let's merge it!)
🤔
I merged it by hand in
7f745ff19f
Pull request closed