Add exception for autoupdate for ssh users so it doesn't try to update and prompt for pass phrase.

This commit is contained in:
stormdragon2976 2022-12-23 00:54:43 -05:00
parent ccbe475156
commit dee46cb51e
1 changed files with 1 additions and 1 deletions

View File

@ -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