From 054761905e50fdd5707fa6794668417ce649e1df Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sat, 24 Jul 2021 22:27:43 +0300 Subject: [PATCH] kiss: don't print misleading message as hooks can update repositories --- kiss | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/kiss b/kiss index 0a83025..2e8d89d 100755 --- a/kiss +++ b/kiss @@ -1565,9 +1565,6 @@ pkg_update() { pkg_update_repo() { cd "$repo" || die "Repository '$repo' inaccessible" - # NULL function for unsupported repository types. - pkg_update_null() { printf 'Repository has no remote\n'; } - contains "$repos" "$PWD" || { repos="$repos $PWD" @@ -1583,7 +1580,9 @@ pkg_update_repo() { # env: PWD is path to repository run_hook pre-update "$#" - "pkg_update_$repo_type" "$@" + case $repo_type in git) + pkg_update_git "$@" + esac # arg1: post-update # env: PWD is path to repository