Skip to content

Commit 27fc351

Browse files
authored
[cleanup] remove unused Env code from bin-wrapper template (#1232)
## Summary The `Env` doesn't seem to be set in the template data. Was removed in https://github.com/jetpack-io/devbox/pull/1150/files#diff-cedf8befe2d1cf00c67c8c48fcb5dd556a871376ae57de3406f91b4d0c2c0de1 ## How was it tested? Have not tested. Relying on testscripts examples.
1 parent 42baf31 commit 27fc351

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

internal/wrapnix/wrapper.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ type createWrapperArgs struct {
6969
devboxer
7070
BashPath string
7171
Command string
72-
Env map[string]string
7372
ShellEnvHash string
7473

7574
destPath string

internal/wrapnix/wrapper.sh.tmpl

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,6 @@
66
# differently than devbox.json env variables which are always set once.
77
*/ -}}
88

9-
{{ range $k, $v := .Env }}
10-
if [[ -z "$__DEVBOX_SET_{{ $k }}" ]]; then
11-
export {{ $k }}="${ {{- $k }}:-{{ $v }}}"
12-
export __DEVBOX_SET_{{ $k }}="1"
13-
fi
14-
{{- end }}
15-
169
{{/*
1710
We use ShellEnvHashKey to prevent doing shellenv if the correct environment is
1811
already set. (perf optimization)

0 commit comments

Comments
 (0)