fix hooks count
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user