fix hooks count

This commit is contained in:
pvincent
2026-08-23 10:52:42 +04:00
parent d22cdcd716
commit c639f06f54
+1 -1
View File
@@ -55,7 +55,7 @@ function perform_upgrade {
# shellcheck disable=SC1091 # shellcheck disable=SC1091
if source /tmp/miaou-bash-install.sh upgrade; then 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 mv "$backup"/hooks.d/* "$MIAOU_BASH_DIR"/hooks.d/
sudo miaou-bash "$MIAOU_BASH_DIR"/lib/initiate.bash sudo miaou-bash "$MIAOU_BASH_DIR"/lib/initiate.bash
fi fi