Skip to content

Commit 8fafcbc

Browse files
committed
remove recursion detection
1 parent f15b54f commit 8fafcbc

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
## Go bash wrapper
22

33
- Forwards CLI arguments to `/bin/bash`
4-
- Fails if there is `GO_SH_WRAPPER` variable defined as recursion
5-
control variable
6-
4+
- Adds `GO_SH_WRAPPER` environment variable
75
## But, why?
86

97
Amazon ssm-agent by default runs with `sh` command and such does

sh.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ import (
77
)
88

99
func main() {
10-
_, set := os.LookupEnv("GO_SH_WRAPPER")
11-
if set {
12-
os.Exit(0)
13-
}
1410
env := append(os.Environ(),"GO_SH_WRAPPER=1")
1511
args := os.Args[1:]
1612
cmd := exec.Command("/bin/bash", args...)

0 commit comments

Comments
 (0)