From c639f06f54fd2925d8dae8f703d42820088f002a Mon Sep 17 00:00:00 2001 From: pvincent Date: Sun, 23 Aug 2026 10:52:42 +0400 Subject: [PATCH] fix hooks count --- lib/self-upgrade.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/self-upgrade.bash b/lib/self-upgrade.bash index a43d786..92d768e 100644 --- a/lib/self-upgrade.bash +++ b/lib/self-upgrade.bash @@ -55,7 +55,7 @@ function perform_upgrade { # shellcheck disable=SC1091 if source /tmp/miaou-bash-install.sh upgrade; then - if [[ $(find "$backup"/hooks.d -maxdepth 1 -type f | wc -l) -gt 0 ]]; then + if [[ $(find "$backup"/hooks.d -maxdepth 1 -type f -not -name '.*' | wc -l) -gt 0 ]]; then sudo mv "$backup"/hooks.d/* "$MIAOU_BASH_DIR"/hooks.d/ sudo miaou-bash "$MIAOU_BASH_DIR"/lib/initiate.bash fi