Correct conflicting logic

This commit is contained in:
buildplan
2025-10-14 03:43:16 +01:00
parent c5a90119f1
commit 4ca035c777

View File

@@ -879,10 +879,6 @@ cleanup_provider_packages() {
print_warning "User $user has $proc_count running process(es)."
fi
if [[ $proc_count -gt 1 ]]; then
print_warning "User $user has $((proc_count - 1)) running process(es)."
fi
if [[ -d "/home/$user" ]] && [[ -f "/home/$user/.ssh/authorized_keys" ]]; then
local key_count=0
key_count=$(grep -cE '^ssh-(rsa|ed25519|ecdsa)' "/home/$user/.ssh/authorized_keys" 2>/dev/null || echo 0)