fix(plugins): add touch netrc and remove netrc in git auth fn
This commit is contained in:
@@ -112,10 +112,12 @@ cmd-git-auth() {
|
|||||||
if [[ -z "$USERNAME" ]]; then
|
if [[ -z "$USERNAME" ]]; then
|
||||||
dokku_log_info1 "Removing netrc auth entry for host $HOST"
|
dokku_log_info1 "Removing netrc auth entry for host $HOST"
|
||||||
netrc unset "$HOST"
|
netrc unset "$HOST"
|
||||||
|
rm "${DOKKU_ROOT}/.netrc"
|
||||||
return $?
|
return $?
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dokku_log_info1 "Setting netrc auth entry for host $HOST"
|
dokku_log_info1 "Setting netrc auth entry for host $HOST"
|
||||||
|
touch "${DOKKU_ROOT}/.netrc"
|
||||||
netrc set "$HOST" "$USERNAME" "$PASSWORD"
|
netrc set "$HOST" "$USERNAME" "$PASSWORD"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user