From be67ae5eb233637166b4a203a675e86e92753366 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sat, 24 Jul 2021 22:37:27 +0300 Subject: [PATCH] misc: nit --- kiss | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/kiss b/kiss index 2e8d89d..8d390c3 100755 --- a/kiss +++ b/kiss @@ -1543,8 +1543,6 @@ pkg_update() { # Update each repository in '$KISS_PATH'. for repo do - repo_type=null - if git -C "$repo" remote >/dev/null 2>&1; then repo_type=git @@ -1554,6 +1552,9 @@ pkg_update() { elif ! [ -d "$repo" ]; then continue + + else + unset repo_type fi pkg_update_repo @@ -1568,7 +1569,7 @@ pkg_update_repo() { contains "$repos" "$PWD" || { repos="$repos $PWD" - log "Updating" "$PWD" + log "$PWD" "" am_owner "$PWD" || { printf 'Need "%s" to update\n' "$user"