git: don't let db-police hook fail for no changes in setup/db

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
Rohit Yadav 2014-08-08 15:52:07 +02:00
parent a0006a6990
commit 2491630f51

View File

@ -42,7 +42,7 @@ check_changes() {
alert_command="command -v festival && $(echo '$1' | festival --tts)"
fi
echo "$changed_files" | grep --quiet "setup/db" && eval $alert_command
echo "$changed_files" | (grep --quiet "setup/db" && eval $alert_command) || true
}
check_changes "Alert, somebody changed CloudStack schemas"