findHooks: Exit with a status code of 1 if issues are found
authorKunal Mehta <legoktm@gmail.com>
Mon, 25 Aug 2014 05:15:05 +0000 (22:15 -0700)
committerAddshore <addshorewiki@gmail.com>
Sat, 18 Jul 2015 21:44:27 +0000 (21:44 +0000)
commit8fb5c380bdd33445545a2ac3902644c643a1838f
treee5684d87d751ac733268ae73603780e770592e20
parentbb5f48a1dd9665d7e666b41a23a8925af7b1bea6
findHooks: Exit with a status code of 1 if issues are found

This will make it easier to have something automated run
the script since it can check the exit code of the script
so see if any issues were found.

Also fixed the printing of "Looks good!", which wasn't happening
if a hook was being ignored. The check for ignoring was moved up
and out of the print logic.

Change-Id: I683a131a804d4fac9a21f386b2756e050219d392
maintenance/findHooks.php