We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f15b54f commit 8fafcbcCopy full SHA for 8fafcbc
README.md
@@ -1,9 +1,7 @@
1
## Go bash wrapper
2
3
- Forwards CLI arguments to `/bin/bash`
4
-- Fails if there is `GO_SH_WRAPPER` variable defined as recursion
5
- control variable
6
-
+- Adds `GO_SH_WRAPPER` environment variable
7
## But, why?
8
9
Amazon ssm-agent by default runs with `sh` command and such does
sh.go
@@ -7,10 +7,6 @@ import (
)
func main() {
10
- _, set := os.LookupEnv("GO_SH_WRAPPER")
11
- if set {
12
- os.Exit(0)
13
- }
14
env := append(os.Environ(),"GO_SH_WRAPPER=1")
15
args := os.Args[1:]
16
cmd := exec.Command("/bin/bash", args...)
0 commit comments