Skip to content

Commit 739c416

Browse files
committed
use whoami rather than $USER in secret_ops::docker_login
This is more reliable
1 parent dcb3fed commit 739c416

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
### 0.7.1 (2019-May-01)
2+
* use `whoami` rather than `$USER` in `secret_ops::docker_login`
3+
14
### 0.7.0 (2019-May-01)
25
* added `secret_ops::docker_login`
36

src/secret-ops

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ function secret_ops::insert_vault_token_gocd_yaml2 {
106106
}
107107

108108
function secret_ops::docker_login {
109-
vault_user_path=$USER
109+
vault_user_path="$(whoami)"
110110
if [ $vault_user_path == "go" ]; then
111111
vault_user_path="gocd"
112112
fi

0 commit comments

Comments
 (0)