File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 1
1
package shell
2
2
3
3
import (
4
+ "os"
4
5
"strings"
5
6
6
7
"github.com/jandedobbeleer/aliae/src/context"
@@ -118,6 +119,8 @@ func (e Envs) Render() {
118
119
119
120
DotFile .WriteString (variable .string ())
120
121
122
+ os .Setenv (variable .Name , variable .Value .(string ))
123
+
121
124
first = false
122
125
}
123
126
Original file line number Diff line number Diff line change @@ -14,11 +14,12 @@ import (
14
14
type Template string
15
15
16
16
func (t Template ) Parse () Template {
17
- if value , err := parse (string (t ), context .Current ); err == nil {
18
- return Template (value )
17
+ value , err := parse (string (t ), context .Current )
18
+ if err != nil {
19
+ return t
19
20
}
20
21
21
- return t
22
+ return Template ( value )
22
23
}
23
24
24
25
func (t Template ) String () string {
You can’t perform that action at this time.
0 commit comments