Browse Source

fix hooks count

main
pvincent 2 weeks ago
parent
commit
c639f06f54
  1. 2
      lib/self-upgrade.bash

2
lib/self-upgrade.bash

@ -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

Loading…
Cancel
Save