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

View File

@ -69,7 +69,7 @@ check_news() {
# Automatic update function # Automatic update function
update() { update() {
local url="$(git ls-remote --get-url)" local url="$(git ls-remote --get-url)"
if [[ "$url" =~ ^ssh://|git@ ]] || [[ -z "$url" ]]; then if [[ "$url" =~ ^ssh://|git@|gitea@ ]] || [[ -z "$url" ]]; then
return return
fi fi
git remote update &> /dev/null git remote update &> /dev/null