jvoisin/php-malware-finder

Provide proper exit code based on the result of the scan

Closed this issue · 1 comments

Right now we almost always have exit code 0, even if there are matches. Ideally if it finds something, it should exit with a non-zero code. This way it would be possible to integrate it into a CI.

Thanks for the suggestion! I've created a PR so that PMF exits with a 255 code when matches are found.