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