Skip to content

Commit 88e0532

Browse files
authored
fix: windows runtime error - could not find home dir (#297)
1 parent 586bbc1 commit 88e0532

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

internal/exec/exec.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,11 @@ func (e *Exec) Run(cc *oaws.CredentialContainer) error {
7575
if strings.HasPrefix(k, "AWS_") {
7676
pairs[k] = pair[1]
7777
}
78+
79+
// fix 'RuntimeError: Could not determine home directory.' on windows when using --exec to run AWS cli v2
80+
if strings.HasPrefix(k, "HOME") {
81+
pairs[k] = pair[1]
82+
}
7883
}
7984
// add creds env var names to pairs
8085
pairs["AWS_ACCESS_KEY_ID"] = cc.AccessKeyID

0 commit comments

Comments
 (0)