Add exception for autoupdate for ssh users so it doesn't try to update and prompt for pass phrase.
This commit is contained in:
parent
ccbe475156
commit
dee46cb51e
@ -69,7 +69,7 @@ check_news() {
|
||||
# Automatic update function
|
||||
update() {
|
||||
local url="$(git ls-remote --get-url)"
|
||||
if [[ "$url" =~ ^ssh://|git@ ]] || [[ -z "$url" ]]; then
|
||||
if [[ "$url" =~ ^ssh://|git@|gitea@ ]] || [[ -z "$url" ]]; then
|
||||
return
|
||||
fi
|
||||
git remote update &> /dev/null
|
||||
|
Loading…
Reference in New Issue
Block a user